10 #define NEWMATNL_LIB 0 200 virtual Real operator()(
int i) = 0;
204 { Set(X);
return IsValid(); }
207 { Set(X);
return operator()(i); }
237 : criterion(crit), Pred(pred), Lim(lim) {}
246 void MakeCovariance();
266 virtual void WG(
bool wgx) { wg = wgx; }
272 { Set(X); WG(wgx);
return IsValid(); }
274 virtual Real LogLikelihood() = 0;
276 { Set(X); WG(wgx);
return LogLikelihood(); }
304 : LL(ll), Lim(lim), Criterion(criterion) {}
310 void MakeCovariance();
Real LogLikelihood(const ColumnVector &X, bool wgx=true)
SymmetricMatrix Covariance
virtual void Set(const ColumnVector &X)
Real ResidualVariance() const
SymmetricMatrix Covariance
virtual void Set(const ColumnVector &X)
MLE_D_FI(LL_D_FI &ll, int lim=1000, Real criterion=0.0001)
bool IsValid(const ColumnVector &X, bool wgx=true)
bool IsValid(const ColumnVector &X)
void GetResiduals(ColumnVector &Z) const
virtual void WG(bool wgx)
Real operator()(int i, const ColumnVector &X)
The usual rectangular matrix.
NonLinearLeastSquares(R1_Col_I_D &pred, int lim=1000, Real crit=0.0001)
const ColumnVector * DataPointer