[][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> RefUnwindSafe for CheckChromoInterval<G> where
    G: RefUnwindSafe

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

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

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

impl<G> UnwindSafe for CheckChromoInterval<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, U> Into<U> for T where
    U: From<T>, 
[src]

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