Struct cge::gene::Gene
[−]
[src]
pub struct Gene {
pub weight: f64,
pub id: usize,
pub variant: GeneExtras,
}Fields
weight: f64
id: usize
variant: GeneExtras
Methods
impl Gene[src]
fn forward(weight: f64, id: usize) -> Gene
fn recurrent(weight: f64, id: usize) -> Gene
fn input(weight: f64, id: usize) -> Gene
fn bias(weight: f64) -> Gene
fn neuron(weight: f64, id: usize, inputs: usize) -> Gene
Trait Implementations
impl PartialEq for Gene[src]
fn eq(&self, __arg_0: &Gene) -> bool
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, __arg_0: &Gene) -> bool
This method tests for !=.
impl Debug for Gene[src]
impl Clone for Gene[src]
fn clone(&self) -> Gene
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