20 using namespace RBD_LIBRARIES;
32 : x_values(X_Values) { deriv.
resize(3); }
43 Real xvi = x_values(i);
44 Real e = exp(-k * xvi);
47 deriv(3) = - b * e * xvi;
58 X << 1 << 2 << 3 << 4 << 6 << 8;
59 Y << 3.2 << 7.9 << 11.1 << 14.5 << 16.7 << 18.3;
67 Para << 9 << -6 << .5;
68 cout <<
"Fitting parameters\n";
74 cout <<
"\n\nEstimates and standard errors\n" <<
75 setw(10) << setprecision(2) << (Para | SE) << endl;
77 cout <<
"\nResidual s.d. = " << setw(10) << setprecision(2) <<
81 cout <<
"\nCorrelationMatrix\n" <<
82 setw(10) << setprecision(2) << Correlations << endl;
87 cout <<
"\nX, Y, Residual, Hat\n" << setw(10) << setprecision(2) <<
88 (X | Y | Residuals | Hat.
as_column()) << endl;
92 cout <<
"\nVar/cov\n" << setw(14) << setprecision(4) << D << endl;
116 cout <<
"\nProgram fails - exception generated\n\n";
ReturnMatrix Derivatives()
void Fit(const ColumnVector &, ColumnVector &)
Real ResidualVariance() const
void GetCorrelations(SymmetricMatrix &)
void GetStandardErrors(ColumnVector &)
void GetResiduals(ColumnVector &Z) const
DiagedMatrix as_diagonal() const
FloatVector FloatVector * a
static const char * what()
Model_3pe(const ColumnVector &X_Values)
ColedMatrix as_column() const
void GetHatDiagonal(DiagonalMatrix &) const