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]
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: Clone + Summary> Clone for SummaryCounter<S>
[src]fn clone(&self) -> SummaryCounter<S>
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<S: Default + Summary + Clone> Default for SummaryCounter<S>
[src]
impl<S: Default + Summary + Clone> Default for SummaryCounter<S>
[src]fn default() -> SummaryCounter<S>
[src]
impl<'de, S: Summary + Clone> Deserialize<'de> for SummaryCounter<S> where
S: Deserialize<'de>,
[src]
impl<'de, S: Summary + Clone> Deserialize<'de> for SummaryCounter<S> where
S: Deserialize<'de>,
[src]fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
Auto Trait Implementations
impl<S> RefUnwindSafe for SummaryCounter<S> where
S: RefUnwindSafe,
impl<S> RefUnwindSafe for SummaryCounter<S> where
S: RefUnwindSafe,
impl<S> Send for SummaryCounter<S>
impl<S> Send for SummaryCounter<S>
impl<S> Sync for SummaryCounter<S>
impl<S> Sync for SummaryCounter<S>
impl<S> Unpin for SummaryCounter<S> where
S: Unpin,
impl<S> Unpin for SummaryCounter<S> where
S: Unpin,
impl<S> UnwindSafe for SummaryCounter<S> where
S: UnwindSafe,
impl<S> UnwindSafe for SummaryCounter<S> where
S: UnwindSafe,
Blanket Implementations
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]