[][src]Struct pso::swarm_config::SwarmConfigSampler

pub struct SwarmConfigSampler { /* fields omitted */ }

Utility to create a range of similar SwarmConfigs

Fields in this struct are initialized as the default SwarmConfig values They can either be set to a range with a minimum or maximum value, or a fixed value

Implementations

impl SwarmConfigSampler[src]

pub fn new() -> Self[src]

pub fn sample_swarm_config(&self, rng: &mut ThreadRng) -> SwarmConfig[src]

pub fn wall_bounce_range(&mut self, min: f64, max: f64)[src]

pub fn local_motion_range(&mut self, min: f64, max: f64)[src]

pub fn tribal_motion_range(&mut self, min: f64, max: f64)[src]

pub fn synergic_range(
    &mut self,
    min_global_motion: f64,
    max_global_motion: f64,
    min_colab_rate: usize,
    max_colab_rate: usize
)
[src]

pub fn solitary(&mut self)[src]

pub fn num_particles_range(&mut self, min: usize, max: usize)[src]

pub fn wall_bounce_fixed(&mut self, value: f64)[src]

pub fn local_fixed(&mut self, value: f64)[src]

pub fn tribal_fixed(&mut self, value: f64)[src]

pub fn synergic_fized(&mut self, global_value: f64, global_colab_rate: usize)[src]

Auto Trait Implementations

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