[][src]Struct optlib::genetic::selection::vec_float::CheckChromoInterval

pub struct CheckChromoInterval<G: Float> { /* fields omitted */ }

Kill individuals if theirs gene does not lie in the specified intevals.

G - type of gene. Returns count of the killed individuals.

Methods

impl<G: Float> CheckChromoInterval<G>[src]

pub fn new(intervals: Vec<(G, G)>) -> Self[src]

Constructor.

Parameters

  • intervals - allowed interval for every gene. Count of the genes and count of the interval must be equal.

Trait Implementations

impl<G: Float> Selection<Vec<G>> for CheckChromoInterval<G>[src]

Auto Trait Implementations

impl<G> Send for CheckChromoInterval<G> where
    G: Send

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

Blanket Implementations

impl<T> From for T[src]

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

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

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

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

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

The type returned in the event of a conversion error.