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]
impl<D, L> SimpleLabeledCloud<D, L>
[src]impl<M: Metric<[f32]>> SimpleLabeledCloud<DataRam<M>, SmallIntLabels>
[src]
impl<M: Metric<[f32]>> SimpleLabeledCloud<DataRam<M>, SmallIntLabels>
[src]pub fn new_simple(
data: Vec<f32>,
dim: usize,
labels: Vec<i64>
) -> DefaultLabeledCloud<M>
[src]
data: Vec<f32>,
dim: usize,
labels: Vec<i64>
) -> DefaultLabeledCloud<M>
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: Debug, L: Debug> Debug for SimpleLabeledCloud<D, L>
[src]impl<D: PointCloud, L: LabelSet> PointCloud 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
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 dim(&self) -> usize
[src]
fn len(&self) -> usize
[src]
fn is_empty(&self) -> bool
[src]
fn reference_indexes(&self) -> Vec<usize>
[src]
fn point<'a, 'b: 'a>(&'b self, i: usize) -> PointCloudResult<Self::PointRef>
[src]
fn metadata(&self, pn: usize) -> PointCloudResult<Option<&Self::Metadata>>
[src]
fn metasummary(
&self,
pns: &[usize]
) -> PointCloudResult<SummaryCounter<Self::MetaSummary>>
[src]
&self,
pns: &[usize]
) -> PointCloudResult<SummaryCounter<Self::MetaSummary>>
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]
&self,
pns: &[usize]
) -> PointCloudResult<SummaryCounter<Self::LabelSummary>>
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
fn point_dense_array(&self, index: usize) -> PointCloudResult<Array1<f32>>
[src]
fn points_dense_matrix(
&self,
indexes: &[usize]
) -> PointCloudResult<Array2<f32>>
[src]
&self,
indexes: &[usize]
) -> PointCloudResult<Array2<f32>>
fn distances_to_point_index(
&self,
i: usize,
indexes: &[usize]
) -> PointCloudResult<Vec<f32>>
[src]
&self,
i: usize,
indexes: &[usize]
) -> PointCloudResult<Vec<f32>>
fn distances_to_point<T: Deref<Target = Self::Point> + Send + Sync>(
&self,
x: &T,
indexes: &[usize]
) -> PointCloudResult<Vec<f32>>
[src]
&self,
x: &T,
indexes: &[usize]
) -> PointCloudResult<Vec<f32>>
fn moment_1(&self, indexes: &[usize]) -> PointCloudResult<Vec<f32>> where
f32: AddAssign,
[src]
f32: AddAssign,
fn moment_2(&self, indexes: &[usize]) -> PointCloudResult<Vec<f32>> where
f32: Mul<Output = f32> + AddAssign,
[src]
f32: Mul<Output = f32> + AddAssign,
Auto Trait Implementations
impl<D, L> RefUnwindSafe for SimpleLabeledCloud<D, L> where
D: RefUnwindSafe,
L: RefUnwindSafe,
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> 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> 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> Unpin for SimpleLabeledCloud<D, L> where
D: Unpin,
L: Unpin,
impl<D, L> UnwindSafe for SimpleLabeledCloud<D, L> where
D: UnwindSafe,
L: UnwindSafe,
impl<D, L> UnwindSafe for SimpleLabeledCloud<D, L> where
D: UnwindSafe,
L: UnwindSafe,