Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
wire-cell-build
ress
src
LinearModel.cxx
Go to the documentation of this file.
1
#include "
WireCellRess/LinearModel.h
"
2
3
#include <Eigen/Dense>
4
using namespace
Eigen
;
5
6
WireCell::LinearModel::LinearModel
()
7
{}
8
9
WireCell::LinearModel::~LinearModel
()
10
{}
11
12
VectorXd
WireCell::LinearModel::Predict
()
13
{
14
return
_X * _beta;
15
}
16
17
double
WireCell::LinearModel::chi2_base
()
18
{
19
return
( _y - Predict() ).squaredNorm();
20
}
21
22
23
double
WireCell::LinearModel::MeanResidual
()
24
{
25
return
( _y - Predict() ).norm() / _y.size();
26
}
LinearModel.h
Eigen
WireCell::LinearModel::LinearModel
LinearModel()
Definition:
LinearModel.cxx:6
WireCell::LinearModel::Predict
Eigen::VectorXd Predict()
Definition:
LinearModel.cxx:12
WireCell::LinearModel::~LinearModel
virtual ~LinearModel()
Definition:
LinearModel.cxx:9
WireCell::LinearModel::MeanResidual
double MeanResidual()
Definition:
LinearModel.cxx:23
WireCell::LinearModel::chi2_base
double chi2_base()
Definition:
LinearModel.cxx:17
Generated by
1.8.11