[−][src]Struct pso::swarm_config::SwarmConfigSampler
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]
&mut self,
min_global_motion: f64,
max_global_motion: f64,
min_colab_rate: usize,
max_colab_rate: usize
)
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
impl RefUnwindSafe for SwarmConfigSampler
impl Send for SwarmConfigSampler
impl Sync for SwarmConfigSampler
impl Unpin for SwarmConfigSampler
impl UnwindSafe for SwarmConfigSampler
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> 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, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,