[][src]Trait optlib::particleswarm::SpeedCalculator

pub trait SpeedCalculator<T> {
    fn calc_new_speed(
        &mut self,
        swarm: &Swarm<T>,
        particle: &Particle<T>
    ) -> Vec<T>; }

Required methods

fn calc_new_speed(&mut self, swarm: &Swarm<T>, particle: &Particle<T>) -> Vec<T>

Loading content...

Implementors

impl<T: NumCast + Num + Copy> SpeedCalculator<T> for ClassicSpeedCalculator<T>[src]

impl<T: NumCast + Num + Copy> SpeedCalculator<T> for CanonicalSpeedCalculator<T>[src]

Loading content...