public class MathUtil extends Object
| Constructor and Description |
|---|
MathUtil() |
| Modifier and Type | Method and Description |
|---|---|
static double[] |
abs(double[] data)
Abs.
|
static int |
countNonZeroBeginning(double[] data)
Count non zero beginning of the data.
|
static int |
countShortestRow(double[][] data)
Count shortest row.
|
static double[] |
getLoessParameterEstimates(double[] y)
Gets the loess parameter estimates.
|
static double[] |
getRobustLoessParameterEstimates(double[] y)
Gets the robust loess parameter estimates.
|
static double[] |
getTricubeBisquareWeigts(double[] residuals)
Gets the tricube bisquare weigts.
|
static double[] |
getTricubeWeigts(int n)
Gets the tricube weigts.
|
static double |
iqr(double[] data)
Gets the IQR.
|
static double[] |
listToArray(List<? extends Number> list)
List to array.
|
static double |
mad(double[] data)
Gets the mad.
|
static double |
mean(List<Double> list)
Gets the average.
|
static double |
median(List<Double> list)
Gets the median.
|
static double |
stDev(List<Double> list)
Gets the standard deviation.
|
static double |
sum(List<? extends Number> list)
Sums a list of numbers.
|
static double[] |
trimZeroTail(double[] data)
Trim zero tail.
|
static double |
variance(List<Double> list)
Variance.
|
public static double sum(List<? extends Number> list)
list - the listpublic static double[] listToArray(List<? extends Number> list)
list - the listpublic static double median(List<Double> list)
list - the listpublic static double mean(List<Double> list)
list - the listpublic static double variance(List<Double> list)
list - the listpublic static double stDev(List<Double> list)
list - the listpublic static double mad(double[] data)
data - the datapublic static double iqr(double[] data)
data - the datapublic static int countNonZeroBeginning(double[] data)
data - the datapublic static int countShortestRow(double[][] data)
data - the datapublic static double[] trimZeroTail(double[] data)
data - the datapublic static double[] getLoessParameterEstimates(double[] y)
y - the ypublic static double[] getRobustLoessParameterEstimates(double[] y)
y - the ypublic static double[] getTricubeWeigts(int n)
n - the npublic static double[] getTricubeBisquareWeigts(double[] residuals)
residuals - the residualspublic static double[] abs(double[] data)
data - the dataCopyright © 2012 The Cloud Computing and Distributed Systems (CLOUDS) Laboratory, The University of Melbourne. All Rights Reserved.