#include "Regression.h"
Go to the source code of this file.
Functions | |
LineParameters | computeNormals (const std::vector< Point2D > &_points) |
LineParameters | computeNormals (const std::vector< Point2D > &_points, const std::vector< double > &_weights) |
LineParameters computeNormals | ( | const std::vector< Point2D > & | points | ) |
Fits a line in the weighted least squares sense to the points, in cartesian coordinates, minimizing the perpendicular errors from the points to the line.
Definition at line 41 of file Regression.cpp.
LineParameters computeNormals | ( | const std::vector< Point2D > & | points, | |
const std::vector< double > & | weights | |||
) |
Fits a line in the weighted least squares sense to the points, in cartesian coordinates, with the corresponding weights, minimizing the weighted perpendicular errors from the points to the line.
Definition at line 3 of file Regression.cpp.