Struct xu::operations::Selection [−][src]
Allows definition of parameters for selecting some agents from a population.
Implementations
impl Selection
[src]
pub fn with_values(
selection_type: SelectionType,
proportion: f64,
preferred_minimum: usize
) -> Self
[src]
selection_type: SelectionType,
proportion: f64,
preferred_minimum: usize
) -> Self
pub fn new(selection_type: SelectionType, proportion: f64) -> Self
[src]
pub fn selection_type(&self) -> SelectionType
[src]
pub fn proportion(&self) -> f64
[src]
pub fn preferred_minimum(&self) -> usize
[src]
pub fn agents<'a, Gene>(
&self,
population: &'a Population<Gene>
) -> BTreeMap<Score, &'a Agent<Gene>> where
Gene: Clone,
[src]
&self,
population: &'a Population<Gene>
) -> BTreeMap<Score, &'a Agent<Gene>> where
Gene: Clone,
pub fn count<Gene>(&self, population: &Population<Gene>) -> usize
[src]
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Selection
impl Send for Selection
impl Sync for Selection
impl Unpin for Selection
impl UnwindSafe for Selection
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,
pub 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> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
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.
pub 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>,