|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectvec_math.AbstractDataModel
vec_math.AbstractGradientModel
vec_math.HarmonicFit.HarmonicModel
private static class HarmonicFit.HarmonicModel
Our data model.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class vec_math.AbstractDataModel |
|---|
AbstractDataModel.Construct, AbstractDataModel.LocalM |
| Field Summary | |
|---|---|
(package private) double |
external
Square of external error. |
(package private) boolean |
fitting
If true, we return the almost-linear model for LM-fitting. |
| Fields inherited from class vec_math.AbstractDataModel |
|---|
sigma, x, y |
| Constructor Summary | |
|---|---|
protected |
HarmonicFit.HarmonicModel(VectorG[] times,
double[] y,
double[] err,
double ext2)
|
| Method Summary | |
|---|---|
double |
evaluateModel(VectorG tup4,
VectorG x1)
The model parameters are per index |
Matrix |
getGradientMatrix(VectorG tup4)
The gradient matrix of the model holds per column index |
double[] |
getMeasurementErrors()
If we had an external error, we subtract it again. |
int |
getParameterCount()
The number of model parameters should be less than the number of data points in the model, otherwise you fit a underdetermined problem. |
void |
setFitting(boolean fit)
Toggle the fitting flag. |
| Methods inherited from class vec_math.AbstractGradientModel |
|---|
check, check, getNegativeChi2HalfGradient, getNegativeChi2HalfGradient, getPseudoHessian, getPseudoHessian, LevenbergMarquardtSolver |
| Methods inherited from class vec_math.AbstractDataModel |
|---|
getChiSquareModel, getChiSquareModel, getLorentzianModel, getMeasureCount, getMeasures, getModel, getModel, getResiduals, getResiduals, getRms, getRobustModel, getTimes, getTotalErrors, LorentzianSolver, RobustSolver, SimplexSolver |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface vec_math.DataModel |
|---|
getMeasureCount, getMeasures, getModel, getResiduals, getTimes, getTotalErrors |
| Field Detail |
|---|
double external
boolean fitting
| Constructor Detail |
|---|
protected HarmonicFit.HarmonicModel(VectorG[] times,
double[] y,
double[] err,
double ext2)
| Method Detail |
|---|
public int getParameterCount()
DataModel
DataModel.getModel(vec_math.VectorG).public void setFitting(boolean fit)
public double evaluateModel(VectorG tup4,
VectorG x1)
x1 - 1-d vector holding the time.tup4 - The model parameterspublic double[] getMeasurementErrors()
getMeasurementErrors in interface DataModelgetMeasurementErrors in class AbstractDataModelpublic Matrix getGradientMatrix(VectorG tup4)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||