[][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 speciation in the algorithm, these are specific to genetic algorithms which implement speciation between members of the population. It also leaves room for more parameters to be added in the future.

Fields

inbreed_rate: f32crossover_rate: f32distance: f32species_target: usize

Implementations

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]

impl Debug for Config[src]

impl<'de> Deserialize<'de> for Config[src]

impl Serialize 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> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

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

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

impl<T> Pointable for T

type Init = T

The type for initializers.

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

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<V, T> VZip<V> for T where
    V: MultiLane<T>,