Struct cge::gene::Gene [] [src]

pub struct Gene {
    pub weight: f64,
    pub id: usize,
    pub variant: GeneExtras,


weight: f64 id: usize variant: GeneExtras


impl Gene

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

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

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.

impl Clone for Gene

fn clone(&self) -> Gene

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more