pub struct GainChart { /* private fields */ }Expand description
A cumulative gain or lift chart as a drawable series (coordinate space
(f64, f64)).
Implementations§
Source§impl GainChart
impl GainChart
Sourcepub fn from_scores(scores: &[f64], labels: &[bool]) -> Result<Self, StatsError>
pub fn from_scores(scores: &[f64], labels: &[bool]) -> Result<Self, StatsError>
Build from predicted scores and true binary labels, defaulting to the
cumulative-gain view.
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 GainChart
impl<DB: DrawingBackend> Drawable<DB> for GainChart
Auto Trait Implementations§
impl Freeze for GainChart
impl RefUnwindSafe for GainChart
impl Send for GainChart
impl Sync for GainChart
impl Unpin for GainChart
impl UnsafeUnpin for GainChart
impl UnwindSafe for GainChart
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