|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectlt.monarch.math.Statistics
public class Statistics extends java.lang.Object
| Constructor and Description |
|---|
Statistics()
|
| Modifier and Type | Method and Description |
|---|---|
static double |
average(java.util.List<java.lang.Object> values)
Calculates the man value of input data. |
static double |
c4(double x)
C4 function |
static double |
cumulative(double x,
double mu,
double sigma)
Cumulative normal distribution |
static double |
Gamma(double x)
Gamma function |
static boolean |
isNormalDistribution(java.util.List<java.lang.Double> d)
Deprecated. |
static double |
max(java.util.Collection<java.lang.Object> values)
Get maximum |
static double |
mean(ArrayDataModel model,
DataColumnType valType)
Calculates mean value. |
static double |
median(ArrayDataModel model,
DataColumnType valType)
Calculates median value. |
static double |
median(java.util.List<java.lang.Object> values)
|
static double |
min(java.util.List<java.lang.Object> values)
Get minimum |
static double |
normal(double x)
Normal distribution |
static double |
normal(double x,
double mean,
double std)
|
static double |
normp(double z)
Cumulative normal distribution |
static float |
randomLevy(float c,
float alpha)
|
static StatResults |
stat(ArrayDataModel model,
DataColumnType valType)
Return mean, variance and standard deviation in StatResults object. |
static double |
stdev(ArrayDataModel model,
DataColumnType valType)
Calculates standard deviation value |
static double[] |
swilk(java.util.List<java.lang.Double> d)
Runs the Shapiro-Wilk test on a list of double values. |
static double |
variance(ArrayDataModel model,
DataColumnType valType)
Calculates variance value |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Statistics()
| Method Detail |
|---|
public static double median(ArrayDataModel model,
DataColumnType valType)
model - data modelvalType - data model column name
public static double mean(ArrayDataModel model,
DataColumnType valType)
model - data modelvalType - value type which will be used to calculate
public static StatResults stat(ArrayDataModel model,
DataColumnType valType)
model - data modelvalType - value type which will be used to calculate
public static double stdev(ArrayDataModel model,
DataColumnType valType)
model - data modelvalType - value type which will be used to calculate
public static double variance(ArrayDataModel model,
DataColumnType valType)
model - data modelvalType - value type which will be used to calculatepublic static double Gamma(double x)
x - public static double c4(double x)
x - public static double normp(double z)
z -
public static double cumulative(double x,
double mu,
double sigma)
x - mu - sigma - public static double normal(double x)
x -
public static double normal(double x,
double mean,
double std)
public static double average(java.util.List<java.lang.Object> values)
throws DataFormatException
values - list of numbersDataFormatException - then list is empty, or values list does not contain numbers.
public static double min(java.util.List<java.lang.Object> values)
throws DataFormatException
values - list of numbersDataFormatException
public static double max(java.util.Collection<java.lang.Object> values)
throws DataFormatException
values - list of numbersDataFormatExceptionpublic static double median(java.util.List<java.lang.Object> values)
@Deprecated public static boolean isNormalDistribution(java.util.List<java.lang.Double> d)
public static double[] swilk(java.util.List<java.lang.Double> d)
public static float randomLevy(float c,
float alpha)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||