From 524bc55fce6eca84e38605ed5426a6eb3034bae3 Mon Sep 17 00:00:00 2001 From: meliurwen Date: Tue, 7 Feb 2023 18:05:46 +0100 Subject: [PATCH] Increased nodes and nodes domain cardinality --- src/main.rs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/main.rs b/src/main.rs index 45917fb..325dd80 100644 --- a/src/main.rs +++ b/src/main.rs @@ -16,8 +16,8 @@ use std::collections::BTreeSet; fn uniform_parameters_generator_right_densities_ctmp() -> (CtbnNetwork, Dataset) { let mut net = CtbnNetwork::new(); - let nodes_cardinality = 3; - let domain_cardinality = 2; + let nodes_cardinality = 5; + let domain_cardinality = 3; for node in 0..nodes_cardinality { // Create the domain for a discrete node let mut domain = BTreeSet::new(); @@ -45,13 +45,12 @@ fn uniform_parameters_generator_right_densities_ctmp() -> (CtbnNetwork, Dataset) // Generate CIMs with uniformly distributed parameters. cim_generator.generate_parameters(&mut net); - let dataset = trajectory_generator(&net, 3, 20.0, Some(30230423)); + let dataset = trajectory_generator(&net, 300, 200.0, Some(30230423)); return (net, dataset); } fn main() { - println!("Hello, world!"); let mut data = json::JsonValue::new_array(); data.push(json::JsonValue::new_object()).unwrap(); data[0]["dyn.str"] = json::JsonValue::new_array();