[][src]Struct optlib::genetic::pre_birth::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.


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

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



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

Trait Implementations

impl<G: Float> PreBirth<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>, 

impl<T, U> TryFrom for T where
    U: Into<T>, 

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized

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

impl<T> BorrowMut for T where
    T: ?Sized

impl<T, U> TryInto for T where
    U: TryFrom<T>, 

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

The type returned in the event of a conversion error.