pub struct EuclideanDistance;Expand description
Implementation of the Diversity trait that calculates the Euclidean distance between two [Genotype]s. The Euclidean distance is the square root of the sum of the squared differences between the corresponding genes’ alleles, normalized by the number of genes.
Trait Implementations§
Source§impl Clone for EuclideanDistance
impl Clone for EuclideanDistance
Source§fn clone(&self) -> EuclideanDistance
fn clone(&self) -> EuclideanDistance
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<G, C> Diversity<C> for EuclideanDistance
impl<G, C> Diversity<C> for EuclideanDistance
Auto Trait Implementations§
impl Freeze for EuclideanDistance
impl RefUnwindSafe for EuclideanDistance
impl Send for EuclideanDistance
impl Sync for EuclideanDistance
impl Unpin for EuclideanDistance
impl UnsafeUnpin for EuclideanDistance
impl UnwindSafe for EuclideanDistance
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more