Trait ew::particleswarm::PostMove[][src]

pub trait PostMove<T> {
    fn post_move(&mut self, coordinates: &mut Vec<T>);
}

The trait may be used after moving the particle but before goal function calculating.

T - type of a point in the search space for goal function.

Required methods

fn post_move(&mut self, coordinates: &mut Vec<T>)[src]

The method may modify coordinates list before calculate goal function

Loading content...

Implementors

impl<T: Float + SampleUniform> PostMove<T> for RandomTeleport<T>[src]

impl<T: Float> PostMove<T> for MoveToBoundary<T>[src]

Loading content...