pub struct Ecdf { /* private fields */ }Expand description
An empirical cumulative distribution function as a drawable step series
(coordinate space (f64, f64) = (value, cumulative proportion)).
Implementations§
Source§impl Ecdf
impl Ecdf
Sourcepub fn from_data(data: &[f64]) -> Result<Self, StatsError>
pub fn from_data(data: &[f64]) -> Result<Self, StatsError>
Build from a raw data sample. Errors if no finite values remain.
Sourcepub fn complementary(self, yes: bool) -> Self
pub fn complementary(self, yes: bool) -> Self
Plot the complementary ECDF (survival function, 1 - F) instead.
Sourcepub fn confidence_band(self, alpha: f64) -> Self
pub fn confidence_band(self, alpha: f64) -> Self
Add a Dvoretzky–Kiefer–Wolfowitz confidence band at level 1 - alpha
(e.g. alpha = 0.05 for 95%).
Sourcepub fn stroke_width(self, width: u32) -> Self
pub fn stroke_width(self, width: u32) -> Self
Set the line stroke width in pixels.
Trait Implementations§
Source§impl<DB: DrawingBackend> Drawable<DB> for Ecdf
impl<DB: DrawingBackend> Drawable<DB> for Ecdf
Auto Trait Implementations§
impl Freeze for Ecdf
impl RefUnwindSafe for Ecdf
impl Send for Ecdf
impl Sync for Ecdf
impl Unpin for Ecdf
impl UnsafeUnpin for Ecdf
impl UnwindSafe for Ecdf
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<'b, T, DB, Coord> IntoDynElement<'b, DB, Coord> for Twhere
T: Drawable<DB> + 'b,
&'a T: for<'a> PointCollection<'a, Coord>,
Coord: Clone,
DB: DrawingBackend,
impl<'b, T, DB, Coord> IntoDynElement<'b, DB, Coord> for Twhere
T: Drawable<DB> + 'b,
&'a T: for<'a> PointCollection<'a, Coord>,
Coord: Clone,
DB: DrawingBackend,
Source§fn into_dyn(self) -> DynElement<'b, DB, Coord>
fn into_dyn(self) -> DynElement<'b, DB, Coord>
Make the conversion