parameterErrors method
Returns the diagonal elements of the covariance matrix.
Implementation
List<double> parameterErrors() {
List<double> out = List(npars);
out.fillRange(0, npars, 0.0);
List<double> parameterErrors;
List<List<double>> covar1 = covar(params);
parameterErrors = numeric.sqrtV(numeric.getDiag(covar1));
//Patch in the fixed parameters. . .
for (int i = 0; i < params.length; i++) {
if (free[i]) {
out[i] = parameterErrors[i];
} else {
out[i] = 0.0;
}
}
return out;
}