Struct moonlander_gp::NodeWeights
[−]
[src]
pub struct NodeWeights { /* fields omitted */ }
Weights to use when deciding between internal and leaf nodes.
This structure is initialized with a desired target depth, and every level advancing in the tree shifts the weights away from internal nodes and towards leaf nodes.
Methods
impl NodeWeights
[src]
fn fixed(target_height: i32) -> NodeWeights
fn randomized(max_height: i32, rng: &mut Rng) -> NodeWeights
fn internal(&self) -> u32
fn leaf(&self) -> u32
fn next_level(&self) -> NodeWeights
fn gen_child<P: RandNode>(&self, rng: &mut Rng) -> Box<P>
Trait Implementations
impl Copy for NodeWeights
[src]
impl Clone for NodeWeights
[src]
fn clone(&self) -> NodeWeights
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more