- All Implemented Interfaces:
Serializable
,Comparable<Statistic.PValueMode>
- Enclosing class:
- Statistic
Mode for P-value computations.
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionIndicates the the probability of the statistic being smaller than (or equal to) the value for this statistic should be computed.Indicates that the p value computation should use the mode NEGATIVE_SIDE if the statistic is smaller than the value returned by the methodStatistic.optimalValue()
and otherwise use the mode POSITIVE_SIDE.Indicates that the probability of the statistic being larger than (or equal to) the value for this statistic should be computed.Indicates that the probability of the statistic being more extreme (or equal to) the value for this statistic should be computed. -
Method Summary
Modifier and TypeMethodDescriptionstatic Statistic.PValueMode
Returns the enum constant of this type with the specified name.static Statistic.PValueMode[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
POSITIVE_SIDE
Indicates that the probability of the statistic being larger than (or equal to) the value for this statistic should be computed. This is generally the correct choice when a statistic's probability distribution's domain has a minimum value of 0. -
NEGATIVE_SIDE
Indicates the the probability of the statistic being smaller than (or equal to) the value for this statistic should be computed. -
TWO_SIDED
Indicates that the probability of the statistic being more extreme (or equal to) the value for this statistic should be computed. If a statistic is not symmetric, this option will result in an error. -
ONE_SIDED
Indicates that the p value computation should use the mode NEGATIVE_SIDE if the statistic is smaller than the value returned by the methodStatistic.optimalValue()
and otherwise use the mode POSITIVE_SIDE. This mode is used primarily in cases where the domain minimum for the probability distribution functions is the value returned byStatistic.optimalValue()
, in which case it acts like a synonym for POSITIVE_SIDE.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-