Struct pointcloud::SimpleLabeledCloud[][src]

pub struct SimpleLabeledCloud<D, L> { /* fields omitted */ }

Simply shoves together a point cloud and a label set, for a modular label system

Implementations

impl<D, L> SimpleLabeledCloud<D, L>[src]

pub fn new(data: D, labels: L) -> Self[src]

Creates a new one

impl<M: Metric<[f32]>> SimpleLabeledCloud<DataRam<M>, SmallIntLabels>[src]

pub fn new_simple(
    data: Vec<f32>,
    dim: usize,
    labels: Vec<i64>
) -> DefaultLabeledCloud<M>
[src]

Simple way of gluing together the most common data source

Trait Implementations

impl<D: Debug, L: Debug> Debug for SimpleLabeledCloud<D, L>[src]

impl<D: PointCloud, L: LabelSet> PointCloud for SimpleLabeledCloud<D, L>[src]

type Metric = D::Metric

Underlying metric this point cloud uses

type Point = D::Point

The derefrenced, raw point. Think f32

type PointRef = D::PointRef

A reference to a point. Think &’a f32 Read more

type Metadata = D::Metadata

Underlying metadata

type MetaSummary = D::MetaSummary

A summary of the underlying metadata

type Label = L::Label

The label type. Summary of a set of labels Read more

type LabelSummary = L::LabelSummary

Summary of a set of labels

fn metasummary(
    &self,
    pns: &[usize]
) -> PointCloudResult<SummaryCounter<Self::MetaSummary>>
[src]

Expensive metadata summary over the samples

fn label(&self, pn: usize) -> PointCloudResult<Option<&Self::Label>>[src]

Grabs a label reference. Supports errors (the label could be remote), and partially labeled datasets with the option.

fn label_summary(
    &self,
    pns: &[usize]
) -> PointCloudResult<SummaryCounter<Self::LabelSummary>>
[src]

Grabs a label summary of a set of indexes.

fn name(&self, pi: usize) -> PointCloudResult<String>[src]

Grabs the name of the point. Returns an error if the access errors out, and a None if the name is unknown

fn index(&self, pn: &str) -> PointCloudResult<usize>[src]

Converts a name to an index you can use

fn names(&self) -> Vec<String>[src]

Gather’s all valid known names

Auto Trait Implementations

impl<D, L> RefUnwindSafe for SimpleLabeledCloud<D, L> where
    D: RefUnwindSafe,
    L: RefUnwindSafe

impl<D, L> Send for SimpleLabeledCloud<D, L> where
    D: Send,
    L: Send

impl<D, L> Sync for SimpleLabeledCloud<D, L> where
    D: Sync,
    L: Sync

impl<D, L> Unpin for SimpleLabeledCloud<D, L> where
    D: Unpin,
    L: Unpin

impl<D, L> UnwindSafe for SimpleLabeledCloud<D, L> where
    D: UnwindSafe,
    L: 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, U> Cast<U> for T where
    U: FromCast<T>, 
[src]

impl<T> From<T> for T[src]

impl<T> FromCast<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Pointable for T

type Init = T

The type for initializers.

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.