Package pulse.search.statistics
Class RSquaredTest
-
- All Implemented Interfaces:
Serializable,Descriptive,Reflexive
public class RSquaredTest extends NormalityTest
The coefficient of determination represents the goodness of fit that aHeatingCurveprovides for theExperimentalData- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class pulse.search.statistics.NormalityTest
significance
-
-
Constructor Summary
Constructors Constructor Description RSquaredTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidevaluate(GeneralTask t)Calculates the coefficient of determination, or simply the value.StringgetDescriptor()If not null, will return the prefix, otherwise calls the superclass method.SumOfSquaresgetSumOfSquares()voidsetSumOfSquares(SumOfSquares sos)booleantest(GeneralTask task)-
Methods inherited from class pulse.search.statistics.NormalityTest
getSelectedTestDescriptor, getStatistic, getStatisticalSignifiance, set, setSelectedTestDescriptor, setStatistic, setStatisticalSignificance
-
Methods inherited from class pulse.search.statistics.ResidualStatistic
calculateResiduals, calculateResiduals, calculateResiduals, equals, getResiduals, getTimeSequence, hashCode, residualsArray
-
Methods inherited from class pulse.util.PropertyHolder
addListener, areDetailsHidden, data, describe, firePropertyChanged, 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
-
-
-
-
Method Detail
-
test
public boolean test(GeneralTask task)
- Specified by:
testin classNormalityTest
-
evaluate
public void evaluate(GeneralTask t)
Calculates the coefficient of determination, or simply the value.First, the mean temperature of the
datais calculated. Then, theTSS(total sum of squares) is calculated as proportional to the variance of data. The residual sum of squares (RSS) is calculated by callingthis.deviationSquares(curve). Finally, these values are combined together as:1 - RSS/TSS.- Specified by:
evaluatein classStatistic- Parameters:
t- the task containing the reference data- See Also:
- Wikipedia page
-
getSumOfSquares
public SumOfSquares getSumOfSquares()
-
setSumOfSquares
public void setSumOfSquares(SumOfSquares sos)
-
getDescriptor
public String getDescriptor()
Description copied from class:PropertyHolderIf not null, will return the prefix, otherwise calls the superclass method.- Overrides:
getDescriptorin classPropertyHolder- Returns:
- the descriptor
- See Also:
Group.getSimpleName()
-
-