A new, blazing-fast learning engine for Continuous Time Bayesian Networks. Written in pure Rust. 🦀
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
use crate::params::*;
|
|
|
|
|
|
|
|
|
|
|
|
pub struct Node {
|
|
|
|
pub params: Box<dyn Params>,
|
|
|
|
pub label: String
|
|
|
|
}
|
|
|
|
|
|
|
|
impl Node {
|
|
|
|
pub fn init(params: Box<dyn Params>, label: String) -> Node {
|
|
|
|
Node{
|
|
|
|
params: params,
|
|
|
|
label:label
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
impl PartialEq for Node {
|
|
|
|
fn eq(&self, other: &Node) -> bool{
|
|
|
|
self.label == other.label
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|