|
|||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.hyperion.essbase.calculator.Statistics
This class provides a set of simple statistical routines. Some of them are present native in Essbase as well and some are not. Contains:
Fields inherited from interface com.hyperion.essbase.calculator.CalculatorConstants |
MISSG, MISSING, MISSING_BYTE, MISSING_CHAR, MISSING_DOUBLE, MISSING_FLOAT, MISSING_INT, MISSING_LONG, MISSING_SHORT, SKIPBOTH, SKIPMISSG, SKIPNONE, SKIPZERO |
Constructor Summary | |
Statistics()
|
Method Summary | |
static double |
avg(double[] data)
Computes the average value of a given sequence. |
static double |
avg(double[] data,
double[] weights)
Computes weighted average of a given sequence. |
static double |
avg(int skip,
double[] data)
Computes the average value of a given sequence (with prescribed skip directive). |
static double |
avg(int skip,
double[] data,
double[] weights)
Computes weighted average value of a given sequence (with prescribed skip directive). |
static double |
correlation(double[] x,
double[] y)
Computes correlation between two sequences If a missing value is encountered in either of the sequences, the corresponding position is skipped in both of them. |
static double |
correlation(double[] x,
double[] y,
double[] weights)
Computes weighted correlation between two sequences If a missing value is encountered in either of the sequences, the corresponding position is skipped in both of them. |
static int |
count(double[] data)
Computes count of non-missing values in a given sequence. |
static int |
count(int skip,
double[] data)
Computes count of a given sequence (with prescribed skip directive). |
static double |
covariance(double[] x,
double[] y)
Computes covariance between two sequences. |
static double |
covariance(double[] x,
double[] y,
double[] weights)
Computes weighted covariance between two sequences If a missing value is encountered in either of the sequences, the corresponding position is skipped in both of them. |
static double |
geomean(double[] data)
Computes the geometric average value of a given sequence. |
static double |
geomean(double[] data,
double[] weights)
Computes weighted geometric average of a given sequence. |
static double |
harmean(double[] data)
Computes harmonic mean of a given sequence. |
static double |
harmean(double[] data,
double[] weights)
Computes weighted harmonic mean of a given sequence. |
static double |
kurt(double[] data)
Computes kurtosis of a sequence. |
static double |
kurt(double[] data,
double[] weights)
Computes weighted kurtosis of a sequence. |
static double |
max(double[] data)
Computes maximum value of given sequence. |
static double |
median(double[] data)
Computes median of a sequence. |
static double |
min(double[] data)
Computes minimum value of given sequence. |
static double |
mode(double[] data)
Computes mode of a sequence. |
static double |
percentile(double percent,
double[] data)
Computes percentile of a sequence. |
static double |
percentile(double percent,
int size,
double[] data)
Computes percentile of a part of a sequence. |
static double |
product(double[] data)
Computes product of a given sequence. |
static double |
product(double[] data,
double[] weights)
Computes weighted product of a given sequence. |
static double |
quartile(int quart,
double[] data)
Computes quartile of a sequence. |
static double |
rank(double value,
double[] data)
Computes rank of a value relative to a given sequence. |
static double |
skew(double[] data)
Computes skewness of a sequence. |
static double |
skew(double[] data,
double[] weights)
Computes weighted skewness of a sequence. |
static double |
stdev(double[] data)
Computes standard deviation of a given sequence. |
static double |
stdev(double[] data,
double[] weights)
Computes weighted standard deviation of a given sequence. |
static double |
stdev(int skip,
double[] data)
Computes standard deviation of a given sequence (with prescribed skip directive). |
static double |
stdev(int skip,
double[] data,
double[] weights)
Computes weighted standard deviation of a given sequence (with prescribed skip directive). |
static double |
stdevp(double[] data)
Computes stdevp of a given sequence. |
static double |
stdevp(double[] data,
double[] weights)
Computes weighted standard deviation of a given sequence. |
static double |
stdevp(int skip,
double[] data)
Computes stdevp of a given sequence (with prescribed skip directive). |
static double |
stdevp(int skip,
double[] data,
double[] weights)
Computes weighted stdevp value of a given sequence (with prescribed skip directive). |
static double |
sum(double[] data)
Computes sum of a given sequence. |
static double |
sum(double[] data,
double[] weights)
Computes weighted sum of a given sequence. |
static double |
var(double[] data)
Computes variance of a given sequence. |
static double |
var(double[] data,
double[] weights)
Computes weighted variance of a given sequence. |
static double |
var(int skip,
double[] data)
Computes variance of a given sequence (with prescribed skip directive). |
static double |
var(int skip,
double[] data,
double[] weights)
Computes weighted variance of a given sequence (with prescribed skip directive). |
static double |
varp(double[] data)
Computes variancep of a given sequence. |
static double |
varp(double[] data,
double[] weights)
Computes weighted varp of a given sequence. |
static double |
varp(int skip,
double[] data)
Computes variancep of a given sequence (with prescribed skip directive). |
static double |
varp(int skip,
double[] data,
double[] weights)
Computes weighted varp of a given sequence (with prescribed skip directive). |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Statistics()
Method Detail |
public static double avg(double[] data)
data
- data arraypublic static double avg(double[] data, double[] weights)
data
- data arrayweights
- weightspublic static double avg(int skip, double[] data)
skip
- skip instruction; possible values are
data
- data arraypublic static double avg(int skip, double[] data, double[] weights)
skip
- skip instruction; possible values are
data
- data arrayweights
- weightspublic static double correlation(double[] x, double[] y)
x
- first arrayy
- second arraypublic static double correlation(double[] x, double[] y, double[] weights)
x
- first arrayy
- second arraypublic static int count(double[] data)
data
- data arraypublic static int count(int skip, double[] data)
skip
- skip instruction; possible values are
data
- data arraypublic static double covariance(double[] x, double[] y)
x
- first arrayy
- second arraypublic static double covariance(double[] x, double[] y, double[] weights)
x
- first arrayy
- second arraypublic static double geomean(double[] data)
data
- data arraypublic static double geomean(double[] data, double[] weights)
data
- data arrayweights
- weightspublic static double harmean(double[] data)
data
- data arraypublic static double harmean(double[] data, double[] weights)
data
- data arrayweights
- weightspublic static double kurt(double[] data)
data
- data arraypublic static double kurt(double[] data, double[] weights)
x
- data arraypublic static double max(double[] data)
data
- data arraypublic static double median(double[] data)
data
- data arraypublic static double min(double[] data)
data
- data arraypublic static double mode(double[] data)
data
- array of datapublic static double percentile(double percent, double[] data)
percent
- percent valuedata
- double arraypublic static double percentile(double percent, int size, double[] data)
percent
- percent valuesize
- size to usedata
- data arraypublic static double product(double[] data)
data
- data arraypublic static double product(double[] data, double[] weights)
data
- data arrayweights
- weightspublic static double quartile(int quart, double[] data)
quart
- indicates which value to return
Possible values are:
data
- double arraypublic static double rank(double value, double[] data)
value
- value to be rankeddata
- array of datapublic static double skew(double[] data)
data
- data arraypublic static double skew(double[] data, double[] weights)
data
- data arraypublic static double stdev(double[] data)
data
- data arraypublic static double stdev(double[] data, double[] weights)
data
- data arrayweights
- weightspublic static double stdev(int skip, double[] data)
skip
- skip instruction; possible values are
data
- data arraypublic static double stdev(int skip, double[] data, double[] weights)
skip
- skip instruction; possible values are
data
- data arrayweights
- weightspublic static double stdevp(double[] data)
data
- data arraypublic static double stdevp(double[] data, double[] weights)
data
- data arrayweights
- weightspublic static double stdevp(int skip, double[] data)
skip
- skip instruction; possible values are
data
- data arraypublic static double stdevp(int skip, double[] data, double[] weights)
skip
- skip instruction; possible values are
data
- data arrayweights
- weightspublic static double sum(double[] data)
data
- data arraypublic static double sum(double[] data, double[] weights)
data
- data arrayweights
- weightspublic static double var(double[] data)
data
- data arraypublic static double var(double[] data, double[] weights)
data
- data arrayweights
- weightspublic static double var(int skip, double[] data)
skip
- skip instruction; possible values are
data
- data arraypublic static double var(int skip, double[] data, double[] weights)
skip
- skip instruction; possible values are
data
- data arrayweights
- weightspublic static double varp(double[] data)
data
- data arraypublic static double varp(double[] data, double[] weights)
data
- data arrayweights
- weightspublic static double varp(int skip, double[] data)
skip
- skip instruction; possible values are
data
- data arraypublic static double varp(int skip, double[] data, double[] weights)
skip
- skip instruction; possible values are
data
- data arrayweights
- weights
|
|||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |