[−][src]Struct pointcloud::label_sources::VecLabels
Uses a vector to label your data. It can be 1 hot encoded, but if you do that you should use SmallIntLabels
Implementations
impl VecLabels[src]
pub fn new(
labels: Vec<f32>,
label_dim: usize,
mask: Option<Vec<bool>>
) -> VecLabels[src]
labels: Vec<f32>,
label_dim: usize,
mask: Option<Vec<bool>>
) -> VecLabels
Creates a new vec label.
pub fn dim(&self) -> usize[src]
The dimension of the vectors this labelset contains
pub fn one_hot_to_int(&self) -> SmallIntLabels[src]
coverts a one-hot encoding to a integer label set
pub fn binary_to_int(&self) -> SmallIntLabels[src]
coverts a binary encoding to a integer label set
Trait Implementations
impl Debug for VecLabels[src]
impl LabelSet for VecLabels[src]
type Label = [f32]
Underlying type.
type LabelSummary = VecSummary
Summary of a set of labels
fn len(&self) -> usize[src]
fn is_empty(&self) -> bool[src]
fn label(&self, pn: PointIndex) -> PointCloudResult<Option<&Self::Label>>[src]
fn label_summary(
&self,
pns: &[PointIndex]
) -> PointCloudResult<SummaryCounter<Self::LabelSummary>>[src]
&self,
pns: &[PointIndex]
) -> PointCloudResult<SummaryCounter<Self::LabelSummary>>
Auto Trait Implementations
impl RefUnwindSafe for VecLabels
impl Send for VecLabels
impl Sync for VecLabels
impl Unpin for VecLabels
impl UnwindSafe for VecLabels
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>,