[−][src]Struct pointcloud::SimpleLabeledCloud
Simply shoves together a point cloud and a label set, for a modular label system
Implementations
impl<D, L: LabelSet> SimpleLabeledCloud<D, L>
[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, L: LabelSet> LabeledCloud for SimpleLabeledCloud<D, L>
[src]
type Label = L::Label
Underlying type.
type LabelSummary = L::LabelSummary
Summary of a set of labels
pub fn label(&self, pn: usize) -> PointCloudResult<Option<&Self::Label>>
[src]
pub fn label_summary(
&self,
pns: &[usize]
) -> PointCloudResult<SummaryCounter<Self::LabelSummary>>
[src]
&self,
pns: &[usize]
) -> PointCloudResult<SummaryCounter<Self::LabelSummary>>
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
pub fn dim(&self) -> usize
[src]
pub fn len(&self) -> usize
[src]
pub fn is_empty(&self) -> bool
[src]
pub fn reference_indexes(&self) -> Vec<usize>
[src]
pub fn point<'a, 'b: 'a>(&'b self, i: usize) -> PointCloudResult<Self::PointRef>
[src]
pub fn point_dense_array(&self, index: usize) -> PointCloudResult<Array1<f32>>
[src]
pub fn points_dense_matrix(
&self,
indexes: &[usize]
) -> PointCloudResult<Array2<f32>>
[src]
&self,
indexes: &[usize]
) -> PointCloudResult<Array2<f32>>
pub fn distances_to_point_index(
&self,
i: usize,
indexes: &[usize]
) -> PointCloudResult<Vec<f32>>
[src]
&self,
i: usize,
indexes: &[usize]
) -> PointCloudResult<Vec<f32>>
pub fn distances_to_point<'a, 'b: 'a>(
&self,
x: &Self::PointRef,
indexes: &[usize]
) -> PointCloudResult<Vec<f32>>
[src]
&self,
x: &Self::PointRef,
indexes: &[usize]
) -> PointCloudResult<Vec<f32>>
pub fn moment_1(&self, indexes: &[usize]) -> PointCloudResult<Vec<f32>> where
f32: AddAssign,
[src]
f32: AddAssign,
pub 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,
D: RefUnwindSafe,
L: RefUnwindSafe,
impl<D, L> Send for SimpleLabeledCloud<D, L> where
D: Send,
L: Send,
D: Send,
L: Send,
impl<D, L> Sync for SimpleLabeledCloud<D, L> where
D: Sync,
L: Sync,
D: Sync,
L: Sync,
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,
pub 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> Pointable for T
pub const ALIGN: usize
type Init = T
The type for initializers.
pub unsafe fn init(init: <T as Pointable>::Init) -> usize
pub unsafe fn deref<'a>(ptr: usize) -> &'a T
pub unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T
pub unsafe fn drop(ptr: usize)
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.
pub 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.
pub 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>,