pub struct HistogramGeometry { /* private fields */ }Expand description
Caller-computed histogram bins, with independently optional KDE and rug.
Each component owns its original columns in its own alignment domain. Scientific validation occurs at preparation; no component is estimated, normalized or borrowed from another domain.
Implementations§
Source§impl HistogramGeometry
impl HistogramGeometry
Sourcepub fn bins(
lower: NumericValues,
upper: NumericValues,
height: NumericValues,
stat: HistogramStat,
) -> Self
pub fn bins( lower: NumericValues, upper: NumericValues, height: NumericValues, stat: HistogramStat, ) -> Self
Supply ordered, contiguous bin edges and their already computed heights.
The declared statistic is the meaning of those heights. It is never used to recompute them.
Sourcepub fn kde(self, x: NumericValues, density: NumericValues) -> Self
pub fn kde(self, x: NumericValues, density: NumericValues) -> Self
Add or replace a supplied density curve.
Sourcepub fn rug(
self,
x: NumericValues,
baseline: NumericValues,
top: NumericValues,
) -> Self
pub fn rug( self, x: NumericValues, baseline: NumericValues, top: NumericValues, ) -> Self
Add or replace independently supplied rug segments.
Sourcepub fn value_dimension(self, name: impl Into<String>) -> Self
pub fn value_dimension(self, name: impl Into<String>) -> Self
Set the original scientific x dimension, independently of its display label.
Sourcepub fn height_dimension(self, name: impl Into<String>) -> Self
pub fn height_dimension(self, name: impl Into<String>) -> Self
Set the original scientific height dimension, independently of its display label.
Sourcepub const fn get_bins(&self) -> &HistogramBinsData
pub const fn get_bins(&self) -> &HistogramBinsData
Borrow the complete original bin declaration.
Sourcepub const fn get_kde(&self) -> Option<&HistogramKde>
pub const fn get_kde(&self) -> Option<&HistogramKde>
Borrow the actual precomputed curve, if supplied.
Sourcepub const fn get_rug(&self) -> Option<&HistogramRugData>
pub const fn get_rug(&self) -> Option<&HistogramRugData>
Borrow the actual rug declaration, if supplied.
Sourcepub fn get_value_dimension(&self) -> &str
pub fn get_value_dimension(&self) -> &str
Resolve the scientific x dimension from its explicit name or the original rug x name.
Sourcepub fn get_height_dimension(&self) -> &str
pub fn get_height_dimension(&self) -> &str
Resolve the scientific y dimension from its explicit name or the original bin height name.
Trait Implementations§
Source§impl Clone for HistogramGeometry
impl Clone for HistogramGeometry
Source§impl Debug for HistogramGeometry
impl Debug for HistogramGeometry
Source§impl PartialEq for HistogramGeometry
impl PartialEq for HistogramGeometry
impl StructuralPartialEq for HistogramGeometry
Auto Trait Implementations§
impl Forget for HistogramGeometry
impl Freeze for HistogramGeometrywhere
*const ArcInner<str> is !null: Freeze,
PhantomData<ArcInner<str>>: Freeze,
*const ArcInner<[f64]> is !null: Freeze,
PhantomData<ArcInner<[f64]>>: Freeze,
*const ArcInner<[u64]> is !null: Freeze,
PhantomData<ArcInner<[u64]>>: Freeze,
*const ArcInner<(RawKey, Arc<str>)> is !null: Freeze,
PhantomData<ArcInner<(RawKey, Arc<str>)>>: Freeze,
*const ArcInner<SourceInfo> is !null: Freeze,
PhantomData<ArcInner<SourceInfo>>: Freeze,
*const ArcInner<SourceProjection> is !null: Freeze,
PhantomData<ArcInner<SourceProjection>>: Freeze,
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
impl Move for HistogramGeometry
impl RefUnwindSafe for HistogramGeometry
impl Send for HistogramGeometry
impl Sync for HistogramGeometry
impl Unpin for HistogramGeometry
impl UnsafeUnpin for HistogramGeometrywhere
*const ArcInner<str> is !null: UnsafeUnpin,
PhantomData<ArcInner<str>>: UnsafeUnpin,
*const ArcInner<[f64]> is !null: UnsafeUnpin,
PhantomData<ArcInner<[f64]>>: UnsafeUnpin,
*const ArcInner<[u64]> is !null: UnsafeUnpin,
PhantomData<ArcInner<[u64]>>: UnsafeUnpin,
*const ArcInner<(RawKey, Arc<str>)> is !null: UnsafeUnpin,
PhantomData<ArcInner<(RawKey, Arc<str>)>>: UnsafeUnpin,
*const ArcInner<SourceInfo> is !null: UnsafeUnpin,
PhantomData<ArcInner<SourceInfo>>: UnsafeUnpin,
*const ArcInner<SourceProjection> is !null: UnsafeUnpin,
PhantomData<ArcInner<SourceProjection>>: UnsafeUnpin,
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
impl UnwindSafe for HistogramGeometrywhere
Arc<str>: UnwindSafe,
Arc<[f64]>: UnwindSafe,
Arc<[u64]>: UnwindSafe,
Arc<(RawKey, Arc<str>)>: UnwindSafe,
Arc<SourceInfo>: UnwindSafe,
Arc<SourceProjection>: UnwindSafe,
RawVecInner: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
impl<T> Scalar for T
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self to the equivalent element of its superset.