[][src]Struct talus::LabeledPoint

pub struct LabeledPoint<T> {
    pub id: i64,
    pub point: T,
    pub value: f64,
}

A point in a graph that contains enough information to allow for Morse complex construction

Fields

id: i64

An identifier for this point. Assumed to be unique.

point: T

FIXME The vector denoting the points location in some space. Used for distance computations.

value: f64

The scalar value associated with this point.

This is the value that is used to determine extrema in the graph.

Mathematically speaking, this corresponds to the value of some morse function at this point.

Methods

impl LabeledPoint<Vec<f64>>[src]

pub fn from_record(record: &StringRecord) -> LabeledPoint<Vec<f64>>[src]

pub fn points_from_file<P: AsRef<Path>>(
    filename: P
) -> Result<Vec<LabeledPoint<Vec<f64>>>, Box<dyn Error>>
[src]

Trait Implementations

impl<T: Clone> Clone for LabeledPoint<T>[src]

impl<T: Debug> Debug for LabeledPoint<T>[src]

impl<'s> FromPyObject<'s> for LabeledPoint<Vec<f64>>[src]

Auto Trait Implementations

impl<T> RefUnwindSafe for LabeledPoint<T> where
    T: RefUnwindSafe

impl<T> Send for LabeledPoint<T> where
    T: Send

impl<T> Sync for LabeledPoint<T> where
    T: Sync

impl<T> Unpin for LabeledPoint<T> where
    T: Unpin

impl<T> UnwindSafe for LabeledPoint<T> where
    T: UnwindSafe

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