Package pulse.search.statistics
Class NormalityTest
- java.lang.Object
-
- pulse.util.UpwardsNavigable
-
- pulse.util.Group
-
- pulse.util.Accessible
-
- pulse.util.PropertyHolder
-
- pulse.search.statistics.Statistic
-
- pulse.search.statistics.ResidualStatistic
-
- pulse.search.statistics.NormalityTest
-
- All Implemented Interfaces:
Serializable,Descriptive,Reflexive
- Direct Known Subclasses:
AndersonDarlingTest,EmptyTest,KSTest,RSquaredTest
public abstract class NormalityTest extends ResidualStatistic
A normality test is invoked after a task finishes, to validate its result. It may be used as an acceptance criterion for tasks. For the test to pass, the model residuals need be distributed according to a (0, σ) normal distribution, where σ is the variance of the model residuals. As this is the pre-requisite for optimisers based on the ordinary least-square statistic, the normality test can also be used to estimate if a fit 'failed' or 'succeeded' in describing the data. The test consists in testing the relation , where the critical value is determined based on a given level of significance.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected static doublesignificance
-
Constructor Summary
Constructors Modifier Constructor Description protectedNormalityTest()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description static StringgetSelectedTestDescriptor()NumericPropertygetStatistic()static NumericPropertygetStatisticalSignifiance()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.static voidsetSelectedTestDescriptor(String selectedTestDescriptor)voidsetStatistic(NumericProperty statistic)static voidsetStatisticalSignificance(NumericProperty alpha)abstract booleantest(GeneralTask task)-
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, 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
-
-
-
-
Method Detail
-
getStatisticalSignifiance
public static NumericProperty getStatisticalSignifiance()
-
setStatisticalSignificance
public static void setStatisticalSignificance(NumericProperty alpha)
-
test
public abstract boolean test(GeneralTask task)
-
getStatistic
public NumericProperty getStatistic()
- Overrides:
getStatisticin classResidualStatistic
-
setStatistic
public void setStatistic(NumericProperty statistic)
- Overrides:
setStatisticin classResidualStatistic
-
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.- Overrides:
setin classResidualStatistic- Parameters:
type- the type, which must be equal by definition toproperty.getType().property- the property, which contains new information.
-
getSelectedTestDescriptor
public static String getSelectedTestDescriptor()
-
setSelectedTestDescriptor
public static void setSelectedTestDescriptor(String selectedTestDescriptor)
-
-