Class StatisticsConfiguration
- java.lang.Object
-
- org.apache.commons.statistics.descriptive.StatisticsConfiguration
-
public final class StatisticsConfiguration extends Object
Configuration for computation of statistics.This class is immutable.
- Since:
- 1.1
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isBiased()
Checks if the calculation of the statistic is biased.StatisticsConfiguration
withBiased(boolean v)
Return an instance with the configured biased option.static StatisticsConfiguration
withDefaults()
Return an instance using the default options.
-
-
-
Method Detail
-
withDefaults
public static StatisticsConfiguration withDefaults()
Return an instance using the default options.- Returns:
- default instance
-
withBiased
public StatisticsConfiguration withBiased(boolean v)
Return an instance with the configured biased option.The correction of bias in a statistic is implementation dependent. If set to
true
then bias correction will be disabled.This option is used by:
- Parameters:
v
- Value.- Returns:
- an instance
-
isBiased
public boolean isBiased()
Checks if the calculation of the statistic is biased. Iffalse
the calculation should use a bias correction.- Returns:
- true if biased
-
-