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 aHeatingCurve
provides 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 void
evaluate(GeneralTask t)
Calculates the coefficient of determination, or simply the value.String
getDescriptor()
If not null, will return the prefix, otherwise calls the superclass method.SumOfSquares
getSumOfSquares()
void
setSumOfSquares(SumOfSquares sos)
boolean
test(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:
test
in classNormalityTest
-
evaluate
public void evaluate(GeneralTask t)
Calculates the coefficient of determination, or simply the value.First, the mean temperature of the
data
is 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:
evaluate
in 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:PropertyHolder
If not null, will return the prefix, otherwise calls the superclass method.- Overrides:
getDescriptor
in classPropertyHolder
- Returns:
- the descriptor
- See Also:
Group.getSimpleName()
-
-