[−][src]Struct pointcloud::SimpleLabeledCloud
Simply shoves together a point cloud and a label set, for a modular label system
Implementations
impl<D: PointCloud, L: LabelSet> SimpleLabeledCloud<D, L>
[src]
impl<M: Metric> SimpleLabeledCloud<DataRam<M>, SmallIntLabels>
[src]
pub fn new_simple(
data: Vec<f32>,
dim: usize,
labels: Vec<u64>
) -> DefaultLabeledCloud<M>
[src]
data: Vec<f32>,
dim: usize,
labels: Vec<u64>
) -> DefaultLabeledCloud<M>
Simple way of gluing together the most common data source
Trait Implementations
impl<D: Debug + PointCloud, L: Debug + LabelSet> Debug for SimpleLabeledCloud<D, L>
[src]
impl<D: PointCloud, L: LabelSet> LabeledCloud for SimpleLabeledCloud<D, L>
[src]
type Label = L::Label
Underlying type.
type LabelSummary = L::LabelSummary
Summary of a set of labels
fn label(&self, pn: PointIndex) -> PointCloudResult<Option<&Self::Label>>
[src]
fn label_summary(
&self,
pns: &[PointIndex]
) -> PointCloudResult<Self::LabelSummary>
[src]
&self,
pns: &[PointIndex]
) -> PointCloudResult<Self::LabelSummary>
impl<D: PointCloud, L: LabelSet> PointCloud for SimpleLabeledCloud<D, L>
[src]
type Metric = D::Metric
Underlying metric this point cloud uses
fn dim(&self) -> usize
[src]
fn len(&self) -> usize
[src]
fn is_empty(&self) -> bool
[src]
fn reference_indexes(&self) -> Vec<PointIndex>
[src]
fn point(&self, i: PointIndex) -> PointCloudResult<PointRef>
[src]
fn distances_to_point_indices(
&self,
is: &[PointIndex],
js: &[PointIndex]
) -> PointCloudResult<Vec<f32>>
[src]
&self,
is: &[PointIndex],
js: &[PointIndex]
) -> PointCloudResult<Vec<f32>>
fn distances_to_point_index(
&self,
i: PointIndex,
indexes: &[PointIndex]
) -> PointCloudResult<Vec<f32>>
[src]
&self,
i: PointIndex,
indexes: &[PointIndex]
) -> PointCloudResult<Vec<f32>>
fn distances_to_point<'a, T: Into<PointRef<'a>>>(
&self,
point: T,
indexes: &[PointIndex]
) -> PointCloudResult<Vec<f32>>
[src]
&self,
point: T,
indexes: &[PointIndex]
) -> PointCloudResult<Vec<f32>>
fn moment_subset(
&self,
moment: i32,
indexes: &[PointIndex]
) -> PointCloudResult<Vec<f32>>
[src]
&self,
moment: i32,
indexes: &[PointIndex]
) -> PointCloudResult<Vec<f32>>
fn partial_adjacency_matrix(
&self,
is: &[PointIndex],
js: &[PointIndex]
) -> PointCloudResult<AdjMatrix>
[src]
&self,
is: &[PointIndex],
js: &[PointIndex]
) -> PointCloudResult<AdjMatrix>
fn adjacency_matrix(
&self,
indexes: &[PointIndex]
) -> PointCloudResult<AdjMatrix>
[src]
&self,
indexes: &[PointIndex]
) -> PointCloudResult<AdjMatrix>
Auto Trait Implementations
impl<D, L> RefUnwindSafe for SimpleLabeledCloud<D, L> where
D: RefUnwindSafe,
L: RefUnwindSafe,
D: RefUnwindSafe,
L: RefUnwindSafe,
impl<D, L> Send for SimpleLabeledCloud<D, L>
impl<D, L> Sync for SimpleLabeledCloud<D, L>
impl<D, L> Unpin for SimpleLabeledCloud<D, L> where
D: Unpin,
L: Unpin,
D: Unpin,
L: Unpin,
impl<D, L> UnwindSafe for SimpleLabeledCloud<D, L> where
D: UnwindSafe,
L: UnwindSafe,
D: UnwindSafe,
L: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> Cast<U> for T where
U: FromCast<T>,
[src]
U: FromCast<T>,
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]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,