[−][src]Struct spdkit::individual::Individual
Methods
impl<G> Individual<G> where
G: Genome,
[src]
G: Genome,
pub fn new<E>(genome: G, func: &mut E) -> Self where
E: EvaluateObjectiveValue<G>,
[src]
E: EvaluateObjectiveValue<G>,
Create a new individual from a genome and evaluation function for raw score.
pub fn genome(&self) -> &G
[src]
Return genome of this individual.
pub fn objective_value(&self) -> f64
[src]
Return the evaluated objective value of this individual.
This is sometimes referred to as objective fitness since this measurement is based solely on an individual's geno/phenotype and is not affected by other factors such as the current makeup of the population
Reference
- De Jong 2006
Trait Implementations
impl<G> AsRef<Individual<G>> for Individual<G> where
G: Genome,
[src]
G: Genome,
impl<G: Clone> Clone for Individual<G> where
G: Genome,
[src]
G: Genome,
fn clone(&self) -> Individual<G>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<G: Debug> Debug for Individual<G> where
G: Genome,
[src]
G: Genome,
Auto Trait Implementations
impl<G> RefUnwindSafe for Individual<G> where
G: RefUnwindSafe,
G: RefUnwindSafe,
impl<G> Send for Individual<G>
impl<G> Sync for Individual<G> where
G: Sync,
G: Sync,
impl<G> Unpin for Individual<G> where
G: Unpin,
G: Unpin,
impl<G> UnwindSafe for Individual<G> where
G: UnwindSafe,
G: UnwindSafe,
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> GeneticOperator for T where
T: Clone + Debug,
[src]
T: Clone + Debug,
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
SS: SubsetOf<SP>,
fn to_subset(&self) -> Option<SS>
fn is_in_subset(&self) -> bool
unsafe fn to_subset_unchecked(&self) -> SS
fn from_subset(element: &SS) -> SP
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
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.
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>,