Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
criterion_stats::bivariate::regression::StraightLine - Rust
[go: Go Back, main page]

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

pub struct StraightLine<A> where
    A: Float, 
{ pub intercept: A, pub slope: A, }

A straight line y = m * x + b

Fields

The y-intercept of the line

The slope of the line

Methods

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

[src]

Fits the data to a straight line 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 StraightLine<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 StraightLine<A> where
    A: Float, 
[src]