[][src]Struct plr::Segment

pub struct Segment {
    pub start: f64,
    pub stop: f64,
    pub slope: f64,
    pub intercept: f64,
}

A single segment of a PLR. The start field is inclusive, the stop field is exclusive. The slope and intercept field can be used in a linear model: in other words, for some x such that start <= x < stop, the prediction is slope * x + intercept.

Fields

start: f64stop: f64slope: f64intercept: f64

Trait Implementations

impl Debug for Segment[src]

Auto Trait Implementations

impl Send for Segment

impl Sync for Segment

impl Unpin for Segment

impl UnwindSafe for Segment

impl RefUnwindSafe for Segment

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]