|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectutil.PropertyContainer
util.PropertyResources
util.PropertyBundles
jview.AbstractDisplayable
jview.JSplittedDataDisplay
jview.JDataModelDisplay
public class JDataModelDisplay
This frame works together with a DataModel and allows displaying
of the original data, the model fit and the residuals. It works utilizing a
JSplittedDataDisplay, placing the measures plus model in the
master panel, and showing the residuals in the bottom slave panel.
Additionally, the user may adjust some of the model parameters, those
given in #KEY_ADJUSTABLE, while those denoted in #KEY_FIXED
cannot be altered. Changing the parameters is accomplished by spinners,
the step-size is regulated by the errors of the model parameters, if
known, #setInitialModel, and by #KEY_ADJUSTABLESTEP.
Transfer functions for x, y and the residual allow more flexibility.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class jview.JSplittedDataDisplay |
|---|
JSplittedDataDisplay.Show |
| Nested classes/interfaces inherited from class util.PropertyResources |
|---|
PropertyResources.URLResource |
| Field Summary | |
|---|---|
private static int |
DEFFITPOINTS
Default property value. |
private DataModel |
display
The data model to display. |
private Function |
efunc
Transfer function for err(y), normally d(yfunc)/d(y). |
static String |
KEY_DATASET
The set name of the data in the master canvas. |
static String |
KEY_ERRFUNCTION
How to transfer the error of the dependant y values from the model. |
static String |
KEY_FITPOINTS
Number of points in the fit. |
static String |
KEY_FITSET
If set, the set name of the fit in the master canvas. |
static String |
KEY_RESIDUALSET
If set, the set name of the fit in the master canvas. |
static String |
KEY_RMSFUNCTION
How to transfer the residuals of the measurement. |
static String |
KEY_XFITMAX
For the fit, the maximum xvector to use . |
static String |
KEY_XFITMIN
For the fit, the minimum xvector to use . |
static String |
KEY_XFUNCTION
How to transfer the independant ('x') values from the model. |
static String |
KEY_YFUNCTION
How to transfer the dependant ('y') values from the model. |
private List<Variable> |
modelfit
The soultion to the model, i.e. |
private Function |
rfunc
Transfer function for residuals. |
private List<Object> |
tagging
The tagging of the data model, null if not applicable. |
private Multidimensional |
xfunc
Transfer function for x. |
private Function |
yfunc
Transfer function for y. |
| Fields inherited from class jview.JSplittedDataDisplay |
|---|
KEY_CONTINUOUS, KEY_LINKDELETE, KEY_MASTERCANVAS, KEY_MASTERWEIGHT, KEY_ONETOUCH, KEY_SLAVECANVAS, KEY_TOPBOTTOM, KEY_TRANSFER |
| Fields inherited from class jview.AbstractDisplayable |
|---|
KEY_COMPONENTNAME, KEY_ICON, KEY_INSETS |
| Fields inherited from class util.PropertyBundles |
|---|
KEY_LOCALECOUNTRY, KEY_LOCALELANGUAGE, KEY_RESOURCEBUNDLES |
| Fields inherited from class util.PropertyResources |
|---|
KEY_NOINITONCREATE, localurl, locate, POSTFIX_DIR, POSTFIX_EXT, POSTFIX_FILE, POSTFIX_LIST, POSTFIX_URL, urlset |
| Fields inherited from class util.PropertyContainer |
|---|
KEY_LISTSEPARATOR, KEY_MAPKEYVALUECHAR, KEY_MAPSEPARATOR |
| Fields inherited from interface util.ResourceSupplying |
|---|
KEY_URLRESOURCES, KEY_URLUSECONFIG, KEY_URLUSECURRENT, KEY_URLUSEHOME |
| Fields inherited from interface util.PropertySupplying |
|---|
CONFIG, KEY_CLASS |
| Constructor Summary | |
|---|---|
JDataModelDisplay(Map<String,String> prop)
Constructs a display that shows the original data, the fit and the residual. |
|
| Method Summary | |
|---|---|
void |
init()
Defaults the transfer function or constructs them with an empty constructor. |
boolean |
isInterested(String property)
We return true on MODELFITTER, MODELDATA, MODELSOLUTION, MODELPARAMETER. |
void |
propertyChange(PropertyChangeEvent pce)
We listen to changes in the fitter (erease all), in the data (replot data), the fitted model (replot fit and residual) and in the model parameters (replot fit and residual). |
private boolean |
setModelData(DataModel dm)
We set a new data model here. |
private boolean |
setModelFitting(ModelFitting model)
Sets the model fitter associated with this panel. |
private boolean |
setModelParameter(Variable c)
This sets a single model parameter to a new value. |
private boolean |
setModelSolution(List<Variable> newfit)
This sets the solution to the model using some outside fitter. |
private boolean |
setModelTagging(Object[] tags)
Sets the tagging of the data model if the tagging length equals the data model measure counts. |
private boolean |
updateFit()
We take the existing fit and step through the measurement space. |
private boolean |
updateMeasures()
We take the existing data model and convert it into a displayable set of data. |
private boolean |
updateResidual()
We take the exisiting fit and calculate the residuals of the model to the measured data. |
| Methods inherited from class jview.JSplittedDataDisplay |
|---|
dataChanged, getComposingCanvases, getMainCanvas, getMasterCanvas, getRepresentation, getSlaveCanvas |
| Methods inherited from class jview.AbstractDisplayable |
|---|
getComponentName, getIcon, getIcon |
| Methods inherited from class util.PropertyBundles |
|---|
clone, getLocalized, getLocalized, getLocalizedString, getLocalizedString, loadResource |
| Methods inherited from class util.PropertyResources |
|---|
createFrom, createFrom, createFrom, getApplet, getAsResources, getLocalClassLoader, getPropertiesToKey, getPropertiesToKey, getResource, getResourceAsStream, getResourceFromKey, getResources, keyCreate, keyCreate, reload, setApplet |
| Methods inherited from class util.PropertyContainer |
|---|
augment, augment, augment, defaultBoolean, defaultChar, defaultDouble, defaultFloat, defaultInt, defaultLong, defaultObject, defaultObject, defaultProperties, defaultProperty, getAsBoolean, getAsChar, getAsDouble, getAsEnums, getAsFloat, getAsInt, getAsList, getAsLong, getAsMap, getAsMap, getAsObject, getAsObject, getProperties, getProperty, has, isNew, parseObject, reload, removeProperty, rescanned, setObject, setProperties, setProperty, stringProperties, toString |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface util.ResourceSupplying |
|---|
getResource, getResourceAsStream, getResources |
| Methods inherited from interface util.PropertySupplying |
|---|
defaultBoolean, defaultChar, defaultDouble, defaultFloat, defaultInt, defaultLong, defaultObject, defaultObject, defaultProperties, defaultProperty, getAsBoolean, getAsChar, getAsDouble, getAsFloat, getAsInt, getAsList, getAsLong, getAsMap, getAsObject, getAsObject, getProperties, getProperty, has, parseObject, removeProperty, setObject, setProperty, stringProperties |
| Field Detail |
|---|
public static final String KEY_DATASET
public static final String KEY_FITSET
public static final String KEY_RESIDUALSET
public static final String KEY_XFUNCTION
public static final String KEY_YFUNCTION
public static final String KEY_ERRFUNCTION
public static final String KEY_RMSFUNCTION
public static final String KEY_XFITMIN
public static final String KEY_XFITMAX
public static final String KEY_FITPOINTS
private static final int DEFFITPOINTS
private DataModel display
private List<Object> tagging
private List<Variable> modelfit
private Multidimensional xfunc
private Function yfunc
private Function efunc
private Function rfunc
| Constructor Detail |
|---|
public JDataModelDisplay(Map<String,String> prop)
| Method Detail |
|---|
public void init()
init in interface Initializableinit in class JSplittedDataDisplaypublic void propertyChange(PropertyChangeEvent pce)
propertyChange in interface PropertyChangeListenerpublic boolean isInterested(String property)
isInterested in interface EclecticPropertyListenerproperty - The property name to query.
private boolean setModelFitting(ModelFitting model)
private boolean setModelData(DataModel dm)
private boolean setModelTagging(Object[] tags)
private boolean setModelSolution(List<Variable> newfit)
private boolean setModelParameter(Variable c)
private boolean updateMeasures()
private boolean updateFit()
MultidimensionalInverse,
we use the x values of the measures to define the sampling points
of the fit.KEY_XFITMIN and
KEY_XFITMAX to be present.KEY_FITPOINTS using a linear
stepping between xstart and xend.DataModel.evaluateModel(vec_math.VectorG, vec_math.VectorG) method on all
sample x and converting the model values with yfunc.
private boolean updateResidual()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||