|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.quinncurtis.chart2djava.ChartObj
com.quinncurtis.spcchartjava.SPCArrayStatistics
public class SPCArrayStatistics
Statistical routines for SPC analysis. It includes routines for the calculations of sums, means, medians, ranges, minimum values, maximum values, variances, and standard deviations. It also includes routines for array sorting and calculating frequency bins for frequency histograms. It also includes functions that compute cumulative probability values for normal, poisson, and chi-squared distributions.
Field Summary |
---|
Constructor Summary | |
---|---|
SPCArrayStatistics()
The default SPCArrayStatistics constructor. |
Method Summary | |
---|---|
static void |
calcFrequencyBins(DoubleArray datavalues,
DoubleArray freqlimits,
DoubleArray bins)
This method fills in the frequency bins for a frequency histogram. |
static double |
chiSqrCumDistribution(double X,
int NU)
Translated from FORTRAN at http://www.itl.nist.gov/div898/software/datapac/CHSCDF.f* THIS SUBROUTINE COMPUTES THE CUMULATIVE DISTRIBUTION FUNCTION VALUE FOR THE CHI-SQUARED DISTRIBUTION WITH INTEGER DEGREES OF FREEDOM PARAMETER = NU. |
java.lang.Object |
clone()
Returns an object that is a clone of this object. |
static double |
getMean(double[] r)
This method returns the mean of an array. |
static double |
getMean(DoubleArray r)
This method returns the mean of an array. |
static double |
getMedian(double[] r)
This method returns the median of an array. |
static double |
getMedian(DoubleArray r)
This method returns the median of an array. |
static double |
getRange(double[] r)
This method returns the range of an array. |
static double |
getRange(DoubleArray r)
This method returns the range of an array. |
static double |
getSSQ(double[] r)
This method returns the SSQ of an array. |
static double |
getSSQ(DoubleArray r)
This method returns the SSQ of an array. |
static double |
getStandardDeviation(double[] r)
This method returns the standard deviation of an array. |
static double |
getStandardDeviation(DoubleArray r)
This method returns the standard deviation of an array. |
static double |
getSum(double[] r)
This method returns the sum of an array. |
static double |
getSum(DoubleArray r)
This method returns the sum of an array. |
static double |
getVariance(double[] r)
This method returns the variance of an array. |
static double |
getVariance(DoubleArray r)
This method returns the variance of an array. |
static double |
inverseNormP(double p)
This method calculates the normal cdf inverse function. |
static double |
normCDF(double X)
Translated from FORTRAN at http://www.itl.nist.gov/div898/software/datapac/NORCDF.f THIS SUBROUTINE COMPUTES THE CUMULATIVE DISTRIBUTION FUNCTION VALUE FOR THE NORMAL (GAUSSIAN) DISTRIBUTION WITH MEAN = 0 AND STANDARD DEVIATION = 1. |
static double |
normP(double z)
source for normal probability functions http://www1.fpl.fs.fed.us/distributions.html \ This method calculates the normal cumulative distribution function. |
static double |
poissonCumDistribution(int X,
double ALAMBA)
Translated from FORTRAN at http://www.itl.nist.gov/div898/software/datapac/POICDF.f THIS SUBROUTINE COMPUTES THE CUMULATIVE DISTRIBUTION FUNCTION VALUE AT THE VALUE X FOR THE POISSON DISTRIBUTION WITH TAIL LENGTH PARAMETER = ALAMBA. |
static void |
sort(double[] r)
This method sorts the source array in ascending order. |
static void |
sort(double[] r,
boolean ascending)
This method sorts the source array in ascending/descending order. |
static void |
sort(DoubleArray r)
This method sorts the source array in ascending order. |
static void |
sort(DoubleArray r,
boolean ascending)
This method sorts the source array in ascending/descending order. |
Methods inherited from class com.quinncurtis.chart2djava.ChartObj |
---|
copy, errorCheck, getChartObjIDCntr, getChartObjType, getThisChartObjID, TypeSafeVectorCopy |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SPCArrayStatistics()
Method Detail |
---|
public static void calcFrequencyBins(DoubleArray datavalues, DoubleArray freqlimits, DoubleArray bins)
datavalues
- The raw data values to count to sort into frequency bins.freqlimits
- An array that hold the limits used to define the frequency bins of the histogram.
The size of the array must be one greater than the following bins aray.bins
- The frequency bins of the frequency histogram. In each element of the array
the count of items within the freqlimits bounds is placed.public static double chiSqrCumDistribution(double X, int NU)
X
- THE VALUE AT WHICH THE CUMULATIVE DISTRIBUTION FUNCTION IS TO BE EVALUATED.
X SHOULD BE NON-NEGATIVE.NU
- THE INTEGER NUMBER OF DEGREES OF FREEDOM. NU SHOULD BE POSITIVE.
public java.lang.Object clone()
clone
in class java.lang.Object
public static double getMean(double[] r)
r
- An array that contains the data values to check.
public static double getMean(DoubleArray r)
r
- An array that contains the data values to check.
public static double getMedian(double[] r)
r
- An array that contains the data values to check.
public static double getMedian(DoubleArray r)
r
- An array that contains the data values to check.
public static double getRange(double[] r)
r
- An array that contains the data values to check.
public static double getRange(DoubleArray r)
r
- An array that contains the data values to check.
public static double getSSQ(double[] r)
r
- An array that contains the data values to check.
public static double getSSQ(DoubleArray r)
r
- An array that contains the data values to check.
public static double getStandardDeviation(double[] r)
r
- An array that contains the data values to check.
public static double getStandardDeviation(DoubleArray r)
r
- An array that contains the data values to check.
public static double getSum(double[] r)
r
- An array that contains the data values to check.
public static double getSum(DoubleArray r)
r
- An array that contains the data values to check.
public static double getVariance(double[] r)
r
- An array that contains the data values to check.
public static double getVariance(DoubleArray r)
r
- An array that contains the data values to check.
public static double inverseNormP(double p)
p
- p must lie between 0 and 1.
public static double normCDF(double X)
X
- value to evaluate.
public static double normP(double z)
z
- no. of standard deviations from the mean
public static double poissonCumDistribution(int X, double ALAMBA)
X
- THE VALUE AT WHICH THE CUMULATIVE DISTRIBUTION FUNCTION IS TO BE EVALUATED.
X SHOULD BE NON-NEGATIVE AND INTEGRAL-VALUED.ALAMBA
- THE VALUE OF THE TAIL LENGTH PARAMET
public static void sort(double[] r)
r
- An array that contains the data values to sort.public static void sort(double[] r, boolean ascending)
r
- An array that contains the data values to sort.ascending
- false and array is sorted in descending orderpublic static void sort(DoubleArray r)
r
- An array that contains the data values to sort.public static void sort(DoubleArray r, boolean ascending)
r
- An array that contains the data values to sort.ascending
- false and array is sorted in descending order
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |