[][src]Struct gchemol_geometry::Alignment

pub struct Alignment<'a> {
    pub algorithm: SuperpositionAlgo,
    // some fields omitted
}

Alignment of candidate structure onto the reference

Fields

algorithm: SuperpositionAlgo

Select algo

Methods

impl<'a> Alignment<'a>[src]

pub fn new(positions: &'a [[f64; 3]]) -> Self[src]

Construct from positions of the candidate to be aligned

pub fn rmsd(
    &self,
    reference: &[[f64; 3]],
    weights: Option<&[f64]>
) -> Result<f64>
[src]

Calculate Root-mean-square deviation of self with the reference coordinates

Parameters

  • reference: reference coordinates
  • weights : weight of each point

pub fn superpose(
    &mut self,
    reference: &[[f64; 3]],
    weights: Option<&[f64]>
) -> Result<Superposition>
[src]

Superpose candidate structure onto reference structure which will be held fixed Return superposition struct

Parameters

  • reference: reference coordinates
  • weights : weight of each point

Trait Implementations

impl<'a> Clone for Alignment<'a>[src]

impl<'a> Debug for Alignment<'a>[src]

Auto Trait Implementations

impl<'a> RefUnwindSafe for Alignment<'a>

impl<'a> Send for Alignment<'a>

impl<'a> Sync for Alignment<'a>

impl<'a> Unpin for Alignment<'a>

impl<'a> UnwindSafe for Alignment<'a>

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> Same<T> for T

type Output = T

Should always be Self

impl<SS, SP> SupersetOf<SS> for SP where
    SS: SubsetOf<SP>, 

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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