pub struct GainPoint {
pub fraction: f64,
pub gain: f64,
pub lift: f64,
}Expand description
One point on a cumulative gain / lift curve.
Fields§
§fraction: f64Fraction of the population targeted (ranked by descending score).
gain: f64Cumulative gain: fraction of all positives captured so far, in [0, 1].
lift: f64Lift: gain / fraction — how many times better than random targeting.
1.0 at fraction == 1.0; the leading fraction == 0 point carries
f64::NAN lift (undefined) and is expected to be skipped when plotting
lift.
Trait Implementations§
impl Copy for GainPoint
impl StructuralPartialEq for GainPoint
Auto Trait Implementations§
impl Freeze for GainPoint
impl RefUnwindSafe for GainPoint
impl Send for GainPoint
impl Sync for GainPoint
impl Unpin for GainPoint
impl UnsafeUnpin for GainPoint
impl UnwindSafe for GainPoint
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