Last Updated: 3/4/97
Class NFPercentile

Class NFPercentile

public class NFPercentile

The NFPercentile class is used to generate percentile information. It contains static methods for specific percentile info, or can be instantiated in order to generate a series of information.

Instance Variables

Type Name Description Default
double P25 25th Percentile value
double P50 50th Percentile value (median)
double P75 75th Percentile value
double biggest biggest data value (except if outliers are used, in which case biggest = the biggest value that is not an outlier.
double interQuartileRange Range between 75th & 2th percentiles
Vector outliers if used, outliers are computed as those data values < (P25 - interQuartileRange * 1.5) or values > (P75 + interQuartileRange * 1.5)
double smallest smallest data value (except if outliers are used, in which case smallest = the smallest value that is not an outlier.

Constructors

Methods


    public NFPercentile (NFDataSet data)
Instantiates NFPercentile and computes values for the object variables. WARNING: if the input data vector is not already ordered, NFPercentile will order the list. Assumes the data vector is a vector of Double values. Assumes outliers are to be computed.

    public NFPercentile (NFDataSet data,
                         boolean useOutliers)
Instantiates NFPercentile and computes values for the object variables. WARNING: if the input data vector is not already ordered, NFPercentile will order the list. Assumes the data vector is a vector of Double values.

    public static double computePercentile (NFDataSet v,
                                            int percentile)
Computes the desired percentile based on data in dataset v. v is assumed to be a sorted one dimensional data set.

    public String toString()
Returns descriptive information about the NFPercentile variables.