pub enum HistogramKde {
Internal,
Precomputed {
x: NumericValues,
y: NumericValues,
},
}Expand description
Density-curve source for an opt-in composite over sample-owned histogram input.
Variants§
Internal
Compute a scale-robust Scott-bandwidth Gaussian KDE from the histogram sample.
Precomputed
Draw caller-computed aligned x/y columns in supplied order.
use lichtung_plot::{HistogramKde, NumericValues};
let kde = HistogramKde::Precomputed {
x: NumericValues::new("x", [0.0, 1.0]),
y: NumericValues::new("density", [0.1, 0.2]),
};Fields
§
x: NumericValuesStrictly increasing x coordinates within the sample-owned bin support.
§
y: NumericValuesNonnegative densities aligned with x.
Trait Implementations§
Source§impl Clone for HistogramKde
impl Clone for HistogramKde
Source§impl Debug for HistogramKde
impl Debug for HistogramKde
Auto Trait Implementations§
impl Forget for HistogramKde
impl Freeze for HistogramKde
impl Move for HistogramKde
impl RefUnwindSafe for HistogramKde
impl Send for HistogramKde
impl Sync for HistogramKde
impl Unpin for HistogramKde
impl UnsafeUnpin for HistogramKde
impl UnwindSafe for HistogramKde
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
Mutably borrows from an owned value. Read more
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>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
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
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.