|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectvec_math.AbstractMultidimensionalDataModel
public abstract class AbstractMultidimensionalDataModel
An abstract data model is an implementation of a data model that allows
the user to get access to the data it is constructed with. For use,
implement MultidimensionalDataModel.getParameterCount() and MultidimensionalDataModel.evaluateModel(vec_math.VectorG, vec_math.VectorG).
| Nested Class Summary | |
|---|---|
(package private) static class |
AbstractMultidimensionalDataModel.LocalMM
A localM-estimate model for the data. |
| Field Summary | |
|---|---|
protected VectorG[] |
sigma
If applicable, the measurement errors. |
protected VectorG[] |
x
The independant variables as an array of vectors. |
protected VectorG[] |
y
The measures as an array of doubles. |
| Constructor Summary | |
|---|---|
protected |
AbstractMultidimensionalDataModel(VectorG[] times,
VectorG[] data,
VectorG[] err)
We construct an abstract data model by providing the dependant variables at the measurement points. |
| Method Summary | |
|---|---|
int |
dimension()
Returns the dimension of the measure. |
boolean |
equalData(MultidimensionalDataModel mdm)
Two data model have the same data base, if their data are equal. |
private static double |
finalSize(Amoeba a)
Estimate the final size of the simplex. |
private static double |
finalSpread(Amoeba a)
Estimate the final size of the simplex. |
Multidimensional |
getChiSquareModel()
We return a multidimensional that calculated the chi-square of the model to the data given. |
static Multidimensional |
getChiSquareModel(MultidimensionalDataModel fit)
We return a multidimensional that calculate the chi-square of the model to the data model given. |
static Multidimensional |
getLorentzianModel(MultidimensionalDataModel fit)
We return a multidimensional that calculate the model parameters with errors that are Lorentzian. |
int |
getMeasureCount()
The number of data points is equal to the array size of the dependant variable array. |
VectorG[] |
getMeasurementErrors()
Default implementation returns the total errors here. |
VectorG[] |
getMeasures()
Returns the measures as an VectorG. |
VectorG[] |
getModel(VectorG a)
Returns the entire model by stepping through all measurement times. |
static VectorG[] |
getModel(VectorG a,
MultidimensionalDataModel dm)
Static version. |
VectorG[] |
getResiduals(VectorG a)
Returns the residuals of the measures to the data model. |
static VectorG[] |
getResiduals(VectorG a,
MultidimensionalDataModel dm)
Returns the residuals of the measures to the data model. |
static Multidimensional |
getRobustModel(MultidimensionalDataModel fit)
We return a multidimensional that calculate the model parameters with errors that are double-sided exponential, which gives a minimization to absolut divergence instead of least-squares. |
VectorG[] |
getTimes()
Returns the times the measurements were taken. |
VectorG[] |
getTotalErrors()
If the errors were set, we return the error vector here. |
static VectorG |
simplexChiSquareSolve(MultidimensionalDataModel exp,
VectorG start,
VectorG length)
We use a Simplex in standard form to solve for a minimum model. |
static VectorG |
simplexChiSquareSolve(MultidimensionalDataModel exp,
VectorG start,
VectorG length,
double tolerance)
We use a Simplex in standard form to solve for a minimum model. |
static VectorG |
simplexLorentzSolve(MultidimensionalDataModel exp,
VectorG start,
VectorG length)
We use a Simplex in lorentzian (even slower than robust) form to solve for a minimum model. |
static VectorG |
simplexLorentzSolve(MultidimensionalDataModel exp,
VectorG start,
VectorG length,
double tolerance)
We use a Simplex in lorentzian (even slower than robust) form to solve for a minimum model. |
static VectorG |
simplexRobustSolve(MultidimensionalDataModel exp,
VectorG start,
VectorG length)
We use a Simplex in robust form to solve for a minimum model. |
static VectorG |
simplexRobustSolve(MultidimensionalDataModel exp,
VectorG start,
VectorG length,
double tolerance)
We use a Simplex in robust form to solve for a minimum model. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface vec_math.MultidimensionalDataModel |
|---|
evaluateModel, getParameterCount |
| Field Detail |
|---|
protected VectorG[] x
protected VectorG[] y
protected VectorG[] sigma
| Constructor Detail |
|---|
protected AbstractMultidimensionalDataModel(VectorG[] times,
VectorG[] data,
VectorG[] err)
NullPointerException - If x is null.| Method Detail |
|---|
public VectorG[] getTimes()
getTimes in interface MultidimensionalDataModelMultidimensionalDataModel.getMeasureCount().public VectorG[] getMeasures()
getMeasures in interface MultidimensionalDataModelpublic VectorG[] getTotalErrors()
getTotalErrors in interface MultidimensionalDataModelpublic VectorG[] getMeasurementErrors()
getMeasurementErrors in interface MultidimensionalDataModelpublic VectorG[] getModel(VectorG a)
getModel in interface MultidimensionalDataModela - The model parameters
public static VectorG[] getModel(VectorG a,
MultidimensionalDataModel dm)
public VectorG[] getResiduals(VectorG a)
getMeasures() and getModel(vec_math.VectorG) and returning the
difference between both.
getResiduals in interface MultidimensionalDataModela - The model parameters, not necessarily the best fit.
public static VectorG[] getResiduals(VectorG a,
MultidimensionalDataModel dm)
getMeasures() and getModel(vec_math.VectorG) and returning the
difference between both.
a - The model parameters, not necessarily the best fit.public int getMeasureCount()
getMeasureCount in interface MultidimensionalDataModelMultidimensionalDataModel.getModel(vec_math.VectorG).public int dimension()
dimension in interface MultidimensionalDataModelpublic boolean equalData(MultidimensionalDataModel mdm)
public Multidimensional getChiSquareModel()
public static Multidimensional getChiSquareModel(MultidimensionalDataModel fit)
public static Multidimensional getRobustModel(MultidimensionalDataModel fit)
public static Multidimensional getLorentzianModel(MultidimensionalDataModel fit)
private static final double finalSize(Amoeba a)
private static final double finalSpread(Amoeba a)
public static VectorG simplexChiSquareSolve(MultidimensionalDataModel exp,
VectorG start,
VectorG length)
public static VectorG simplexChiSquareSolve(MultidimensionalDataModel exp,
VectorG start,
VectorG length,
double tolerance)
public static VectorG simplexRobustSolve(MultidimensionalDataModel exp,
VectorG start,
VectorG length)
public static VectorG simplexRobustSolve(MultidimensionalDataModel exp,
VectorG start,
VectorG length,
double tolerance)
public static VectorG simplexLorentzSolve(MultidimensionalDataModel exp,
VectorG start,
VectorG length)
public static VectorG simplexLorentzSolve(MultidimensionalDataModel exp,
VectorG start,
VectorG length,
double tolerance)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||