Struct criterion_stats::bivariate::regression::Slope [] [src]

pub struct Slope<A>(pub A)
where
    A: Float
;

A straight line that passes through the origin y = m * x

Methods

impl<A> Slope<A> where
    A: Float, 
[src]

[src]

Fits the data to a straight line that passes through the origin using ordinary least squares

  • Time: O(length)

[src]

Computes the goodness of fit (coefficient of determination) for this data set

  • Time: O(length)

Trait Implementations

impl<A: Clone> Clone for Slope<A> where
    A: Float, 
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl<A: Copy> Copy for Slope<A> where
    A: Float, 
[src]

Auto Trait Implementations

impl<A> Send for Slope<A>

impl<A> Sync for Slope<A>