Struct cppn::cppn::Cppn [] [src]

pub struct Cppn<'a, N, L, EXTID> where
    N: CppnNodeType + 'a,
    L: Copy + Debug + Send + Sized + Into<f64> + 'a,
    EXTID: Copy + Debug + Send + Sized + Ord + 'a, 
{ /* fields omitted */ }

Represents a Compositional Pattern Producing Network (CPPN)

Methods

impl<'a, N, L, EXTID> Cppn<'a, N, L, EXTID> where
    N: CppnNodeType + 'a,
    L: Copy + Debug + Send + Sized + Into<f64> + 'a,
    EXTID: Copy + Debug + Send + Sized + Ord + 'a, 
[src]

Calculate all outputs

Reads the nth_output of the network.

Returns the number of outputs

Returns the number of inputs

Process the network for the given inputs. Outputs can be read after this call using read_output.

Group the nodes into layers.