[−][src]Struct pointcloud::SummaryCounter
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> 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: Debug + Summary> Debug for SummaryCounter<S>
[src]
impl<S: Default + Summary> Default for SummaryCounter<S>
[src]
pub fn default() -> SummaryCounter<S>
[src]
impl<'de, S: Summary> Deserialize<'de> for SummaryCounter<S> where
S: Deserialize<'de>,
[src]
S: Deserialize<'de>,
pub fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl<S: Summary> Serialize for SummaryCounter<S> where
S: Serialize,
[src]
S: Serialize,
Auto Trait Implementations
impl<S> RefUnwindSafe for SummaryCounter<S> where
S: RefUnwindSafe,
S: RefUnwindSafe,
impl<S> Send for SummaryCounter<S>
impl<S> Sync for SummaryCounter<S>
impl<S> Unpin for SummaryCounter<S> where
S: Unpin,
S: Unpin,
impl<S> UnwindSafe for SummaryCounter<S> where
S: UnwindSafe,
S: 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> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
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>,