Audacity 3.2.0
|
#include <cassert>
#include <numeric>
#include <utility>
#include <vector>
Go to the source code of this file.
Functions | |
template<typename X , typename Y , typename W = double> | |
std::pair< double, double > | LinearFit (const std::vector< X > &x, const std::vector< Y > &y, std::vector< W > w={}) |
Linear least-square fit of a set of points y located at x , with optional weights w . More... | |
std::pair< double, double > LinearFit | ( | const std::vector< X > & | x, |
const std::vector< Y > & | y, | ||
std::vector< W > | w = {} |
||
) |
Linear least-square fit of a set of points y
located at x
, with optional weights w
.
Audacity: A Digital Audio Editor
Matthieu Hodgkinson
Definition at line 26 of file LinearFit.h.
Referenced by TEST_CASE().