1 #ifndef STATISTICS_LINEAR_MODEL_H 2 #define STATISTICS_LINEAR_MODEL_H 20 enum SolveMethod { Cholesky, SVD, QR };
23 Real Evaluate(
const Vector& x)
const;
24 Real Variance(
const Vector& x)
const;
25 void CoeffVariance(
Vector& coeffVariance)
const;
26 bool LeastSquares(
const Matrix& x,
const Vector& outcome);
27 bool LeastSquares(
const std::vector<Vector>& x,
const std::vector<Real>& outcome);
28 bool LeastSquares(
const std::vector<Vector>& x,
int outcomeIndex);
31 bool LeastSquares_Internal(
const Matrix& x,
const Vector& outcome);
32 bool LeastSquares_Cholesky(
const Matrix& x,
const Vector& outcome);
33 bool LeastSquares_SVD(
const Matrix& x,
const Vector& outcome);
34 bool LeastSquares_QR(
const Matrix& x,
const Vector& outcome);
37 SolveMethod solveMethod;
44 std::istream& operator >> (std::istream& in,
LinearModel& model);
45 std::ostream& operator << (std::ostream& out,
const LinearModel& model);
Contains all definitions in the statistics directory.
Definition: BernoulliDistribution.h:6
Basic statistical utilities.
A linear model of n-dimensional data.
Definition: LinearModel.h:17