Package pulse.search.statistics
Class ResidualStatistic
- java.lang.Object
-
- pulse.util.UpwardsNavigable
-
- pulse.util.Group
-
- pulse.util.Accessible
-
- pulse.util.PropertyHolder
-
- pulse.search.statistics.Statistic
-
- pulse.search.statistics.ResidualStatistic
-
- All Implemented Interfaces:
Serializable,Descriptive,Reflexive
- Direct Known Subclasses:
NormalityTest,OptimiserStatistic
public abstract class ResidualStatistic extends Statistic
An abstract statistic (= a numeric value resulting from a statistical procedure) that operates with model residuals. The list of residuals is stored in a field value for objects of this class. EachSearchTaskwill have at least twoResidualStatistics associated with itsCalculations.- See Also:
SearchTask,Calculation, Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ResidualStatistic()ResidualStatistic(ResidualStatistic another)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcalculateResiduals(DiscreteInput reference, Response estimate)voidcalculateResiduals(DiscreteInput reference, Response estimate, int min, int max)This will calculate the residuals for thetaskusing the time sequence defined by theExperimentalDataobject.The residuals are calculated between the model, which was previously used to populate theHeatingCurveand the experimental data.The temperature value of the model at the reference time is .and unknown a priori.voidcalculateResiduals(GeneralTask task)booleanequals(Object obj)List<Double>getResiduals()NumericPropertygetStatistic()List<Double>getTimeSequence()inthashCode()double[]residualsArray()voidset(NumericPropertyKeyword type, NumericProperty property)An abstract method, which must be overriden to gain access over setting the values of all relevant (selected by the programmer)NumericProperties in subclasses ofAccessible.voidsetStatistic(NumericProperty statistic)-
Methods inherited from class pulse.util.PropertyHolder
addListener, areDetailsHidden, data, describe, firePropertyChanged, getDescriptor, getListeners, getPrefix, ignoreSiblings, initListeners, isListedNumericType, isListedParameter, listedKeywords, listedTypes, numericData, parameterListChanged, removeListeners, setPrefix, updateProperties, updateProperty
-
Methods inherited from class pulse.util.Accessible
accessibleChildren, genericProperties, genericProperty, numericProperties, numericProperty, property, update, update
-
Methods inherited from class pulse.util.UpwardsNavigable
addHierarchyListener, getHierarchyListeners, getParent, identify, removeHierarchyListener, removeHierarchyListeners, setParent, specificAncestor, tellParent
-
-
-
-
Constructor Detail
-
ResidualStatistic
public ResidualStatistic()
-
ResidualStatistic
public ResidualStatistic(ResidualStatistic another)
-
-
Method Detail
-
calculateResiduals
public final void calculateResiduals(DiscreteInput reference, Response estimate, int min, int max)
This will calculate the residuals for thetaskusing the time sequence defined by theExperimentalDataobject.The residuals are calculated between the model, which was previously used to populate theHeatingCurveand the experimental data.The temperature value of the model at the reference time is .and unknown a priori. Therefore, it needs to be interpolated based on the discrete dataset generated by the solver. The interpolation is currently done using natural cubic splines, which are re-constructed each time a new solution is generated. Therefore, calling this method does not involve expensive calculation of the spline coefficents. The residuals are calculated only for the range that is specified by theExperimentalDatareference. The output of this method is stored in the field of theresidualsobject.- Parameters:
reference-estimate-- See Also:
ExperimentalData,HeatingCurve
-
calculateResiduals
public void calculateResiduals(DiscreteInput reference, Response estimate)
-
residualsArray
public double[] residualsArray()
-
calculateResiduals
public final void calculateResiduals(GeneralTask task)
-
getStatistic
public NumericProperty getStatistic()
-
setStatistic
public void setStatistic(NumericProperty statistic)
-
set
public void set(NumericPropertyKeyword type, NumericProperty property)
Description copied from class:AccessibleAn abstract method, which must be overriden to gain access over setting the values of all relevant (selected by the programmer)
NumericProperties in subclasses ofAccessible. Typically this involves aswitchstatement that goes through the different options for thetypeand invokes differentset(...)methods to update the matchingNumericPropertywithproperty.- Specified by:
setin classAccessible- Parameters:
type- the type, which must be equal by definition toproperty.getType().property- the property, which contains new information.
-
-