[][src]Struct spdkit::individual::Individual

pub struct Individual<G> where
    G: Genome
{ /* fields omitted */ }

Methods

impl<G> Individual<G> where
    G: Genome
[src]

pub fn new<E>(genome: G, func: &mut E) -> Self where
    E: EvaluateObjectiveValue<G>, 
[src]

Create a new individual from a genome and evaluation function for raw score.

pub fn genome(&self) -> &G[src]

Return genome of this individual.

pub fn objective_value(&self) -> f64[src]

Return the evaluated objective value of this individual.

This is sometimes referred to as objective fitness since this measurement is based solely on an individual's geno/phenotype and is not affected by other factors such as the current makeup of the population

Reference

  • De Jong 2006

Trait Implementations

impl<G> AsRef<Individual<G>> for Individual<G> where
    G: Genome
[src]

impl<G: Clone> Clone for Individual<G> where
    G: Genome
[src]

impl<G: Debug> Debug for Individual<G> where
    G: Genome
[src]

Auto Trait Implementations

impl<G> RefUnwindSafe for Individual<G> where
    G: RefUnwindSafe

impl<G> Send for Individual<G>

impl<G> Sync for Individual<G> where
    G: Sync

impl<G> Unpin for Individual<G> where
    G: Unpin

impl<G> UnwindSafe for Individual<G> where
    G: UnwindSafe

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> GeneticOperator for T where
    T: Clone + Debug
[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<SS, SP> SupersetOf<SS> for SP where
    SS: SubsetOf<SP>, 

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>,