3 Chi2::Chi2(TMatrixD &
m, TMatrixD &ym, TMatrixD &merrors) {
8 TMatrixD m_leftMatrix(mt * merrors * m);
9 TMatrixD m_rightMatrix(mt * merrors * ym);
10 leftMatrix.ResizeTo(m_leftMatrix.GetNrows(), m_leftMatrix.GetNcols());
11 rightMatrix.ResizeTo(m_rightMatrix.GetNrows(), m_rightMatrix.GetNcols());
12 covariance.ResizeTo(m_leftMatrix.GetNrows(), m_leftMatrix.GetNrows());
16 TMatrixD m_solution(
covariance * m_rightMatrix);
17 solution.ResizeTo(m_solution.GetNrows(), m_solution.GetNcols());
19 TMatrixD m_Chi2((yt - m_solution.T() *
mt) * merrors * (ym - m *
solution));
21 dof = ym.GetNrows() - solution.GetNrows();
Chi2(TMatrixD &, TMatrixD &, TMatrixD &)
TMatrixD & getCovariance()