Struct pointcloud::SummaryCounter[][src]

pub struct SummaryCounter<S: Summary + Clone> {
    pub summary: S,
    pub nones: usize,
    pub errors: usize,
}

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

Fields

summary: S

The categorical summary

nones: usize

How many unlabeled elements this summary covers

errors: usize

How many elements under this summary errored out

Implementations

impl<S: Summary + Clone> SummaryCounter<S>[src]

pub fn add(&mut self, v: PointCloudResult<Option<&S::Label>>)[src]

adds an element to the summary, handling errors

pub fn combine(&mut self, other: &SummaryCounter<S>)[src]

Combines the underlying summaries, and the nones/errors

pub fn summary(&self) -> &S[src]

a refernce to the underlying summary

pub fn count(&self) -> usize[src]

the number of samples this summarieses

pub fn nones(&self) -> usize[src]

how many unlabeled samples snuck thru

pub fn errors(&self) -> usize[src]

how many samples labels errored out

Trait Implementations

impl<S: Clone + Summary> Clone for SummaryCounter<S>[src]

impl<S: Debug + Summary + Clone> Debug for SummaryCounter<S>[src]

impl<S: Default + Summary + Clone> Default for SummaryCounter<S>[src]

impl<'de, S: Summary + Clone> Deserialize<'de> for SummaryCounter<S> where
    S: Deserialize<'de>, 
[src]

impl<S: Summary + Clone> Serialize for SummaryCounter<S> where
    S: Serialize
[src]

Auto Trait Implementations

impl<S> RefUnwindSafe for SummaryCounter<S> where
    S: RefUnwindSafe

impl<S> Send for SummaryCounter<S>

impl<S> Sync for SummaryCounter<S>

impl<S> Unpin for SummaryCounter<S> where
    S: Unpin

impl<S> UnwindSafe for SummaryCounter<S> where
    S: 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> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[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> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.