SuanShu, a Java numerical and statistical library

com.numericalmethod.suanshu.stats.descriptive.rank
Enum Quantile.Type

java.lang.Object
  extended by java.lang.Enum<Quantile.Type>
      extended by com.numericalmethod.suanshu.stats.descriptive.rank.Quantile.Type
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<Quantile.Type>
Enclosing class:
Quantile

public static enum Quantile.Type
extends java.lang.Enum<Quantile.Type>

the quantile definitions available

For details, please refer to

 Sample quantiles in statistical packages
 by
 Hyndman, R. J. and Fan, Y. (1996)
 American Statistician, 50, 361–365.
 


Enum Constant Summary
APPROXIMATELY_MEDIAN_UNBIASED
          default: the resulting quantile estimates are approximately median-unbiased regardless of the distribution of the sample
APPROXIMATELY_UNBIASED_IF_DATA_IS_NORMAL
          resulting quantile estimates are approximately unbiased for the expected order statistics if the sample is normally distributed
INVERSE_OF_EMPIRICAL_CDF
          inverse of empirical distribution function
INVERSE_OF_EMPIRICAL_CDF_WITH_AVERAGING_AT_DISCONTINUITIES
          inverse of empirical distribution function with averaging at discontinuities
LINEAR_INTERPOLATION_OF_EMPIRICAL_CDF
          linear interpolation of the empirical cdf
MIDWAY_THROUGH_STEPS_OF_EMPIRICAL_CDF
          a piecewise linear function where the knots are the values midway through the steps of the empirical cdf
MINITAB_SPSS
          definition in Minitab and SPSS
NEAREST_EVEN_ORDER_STATISTICS
          nearest even order statistic as in SAS
S
          definition in S
 
Method Summary
static Quantile.Type valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static Quantile.Type[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

INVERSE_OF_EMPIRICAL_CDF

public static final Quantile.Type INVERSE_OF_EMPIRICAL_CDF
inverse of empirical distribution function


INVERSE_OF_EMPIRICAL_CDF_WITH_AVERAGING_AT_DISCONTINUITIES

public static final Quantile.Type INVERSE_OF_EMPIRICAL_CDF_WITH_AVERAGING_AT_DISCONTINUITIES
inverse of empirical distribution function with averaging at discontinuities


NEAREST_EVEN_ORDER_STATISTICS

public static final Quantile.Type NEAREST_EVEN_ORDER_STATISTICS
nearest even order statistic as in SAS


LINEAR_INTERPOLATION_OF_EMPIRICAL_CDF

public static final Quantile.Type LINEAR_INTERPOLATION_OF_EMPIRICAL_CDF
linear interpolation of the empirical cdf


MIDWAY_THROUGH_STEPS_OF_EMPIRICAL_CDF

public static final Quantile.Type MIDWAY_THROUGH_STEPS_OF_EMPIRICAL_CDF
a piecewise linear function where the knots are the values midway through the steps of the empirical cdf


MINITAB_SPSS

public static final Quantile.Type MINITAB_SPSS
definition in Minitab and SPSS


S

public static final Quantile.Type S
definition in S


APPROXIMATELY_MEDIAN_UNBIASED

public static final Quantile.Type APPROXIMATELY_MEDIAN_UNBIASED
default: the resulting quantile estimates are approximately median-unbiased regardless of the distribution of the sample


APPROXIMATELY_UNBIASED_IF_DATA_IS_NORMAL

public static final Quantile.Type APPROXIMATELY_UNBIASED_IF_DATA_IS_NORMAL
resulting quantile estimates are approximately unbiased for the expected order statistics if the sample is normally distributed

Method Detail

values

public static Quantile.Type[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (Quantile.Type c : Quantile.Type.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static Quantile.Type valueOf(java.lang.String name)
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:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null

SuanShu, a Java numerical and statistical library

Copyright © 2011 Numerical Method Inc. Ltd. All Rights Reserved.