[−][src]Struct optlib::genetic::selection::vec_float::CheckChromoInterval
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]
fn kill(&mut self, population: &mut Population<Vec<G>>)[src]
Auto Trait Implementations
impl<G> Send for CheckChromoInterval<G> where
G: Send,
G: Send,
impl<G> Sync for CheckChromoInterval<G> where
G: Sync,
G: Sync,
Blanket Implementations
impl<T> From for T[src]
impl<T, U> Into for T where
U: From<T>, [src]
U: From<T>,
impl<T, U> TryFrom for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T> Borrow for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T, U> TryInto for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,