Struct criterion_stats::bivariate::regression::StraightLine
source · pub struct StraightLine<A>where
A: Float,{
pub intercept: A,
pub slope: A,
}
Expand description
A straight line y = m * x + b
Fields§
§intercept: A
The y-intercept of the line
slope: A
The slope of the line
Implementations§
source§impl<A> StraightLine<A>where
A: Float,
impl<A> StraightLine<A>where
A: Float,
Trait Implementations§
source§impl<A> Clone for StraightLine<A>where
A: Float + Clone,
impl<A> Clone for StraightLine<A>where
A: Float + Clone,
source§fn clone(&self) -> StraightLine<A>
fn clone(&self) -> StraightLine<A>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more