[][src]Struct radiate::engine::population::Config

pub struct Config {
    pub inbreed_rate: f32,
    pub crossover_rate: f32,
    pub distance: f32,
    pub species_target: usize,
}

This is just to keep track of a few parameters for the population, this encapsulates a few arguments for speication in the algorithm, these are specific to genetic algorithms which implement speciation between members of the population. It also leaves room for more paramters to be added in the future.

Fields

inbreed_rate: f32crossover_rate: f32distance: f32species_target: usize

Methods

impl Config[src]

This is a default config implementation which needs to be set for the population to evolve with speciation. These numbers need to be set for the evolution to work correctly

pub fn new() -> Self[src]

Trait Implementations

impl Clone for Config[src]

Auto Trait Implementations

impl RefUnwindSafe for Config

impl Send for Config

impl Sync for Config

impl Unpin for Config

impl UnwindSafe for Config

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Type for T[src]

type Meta = Concrete

Type of metadata for type.

impl<T> Type for T where
    T: ?Sized
[src]

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,