List of usage examples for org.apache.commons.math3.stat.descriptive.moment Kurtosis evaluate
@Override public double evaluate(final double[] values) throws MathIllegalArgumentException
From source file:com.facebook.presto.operator.aggregation.TestDoubleKurtosisAggregation.java
@Override public Number getExpectedValue(int start, int length) { if (length < 4) { return null; }//from w ww . ja va2 s .c o m double[] values = new double[length]; for (int i = 0; i < length; i++) { values[i] = start + i; } Kurtosis kurtosis = new Kurtosis(); return kurtosis.evaluate(values); }
From source file:msi.gaml.operators.Stats.java
@operator(value = "kurtosis", can_be_const = false, // type = IType.LIST, category = { IOperatorCategory.STATISTICAL }, concept = { IConcept.STATISTIC, IConcept.CLUSTERING }) @doc(value = "returns kurtosis value computed from the operand list of values", special_cases = "if the length of the list is lower than 3, returns NaN", examples = { @example(value = "kurtosis ([1,2,3,4,5])", equals = "1.0") }) public static Double kurtosis(final IScope scope, final GamaList data) throws GamaRuntimeException { final Kurtosis k = new Kurtosis(); final double[] values = new double[data.length(scope)]; for (int i = 0; i < values.length; i++) { values[i] = Cast.asFloat(scope, data.get(i)); }//from w w w. java 2s .co m return k.evaluate(values); }
From source file:org.uclab.mm.icl.llc.AR.iar.AR_FeatureExtractor.java
/** * /* ww w .ja va 2s.c om*/ * @param values double array to get kurtosis * @return kurtosis of the input array */ public static double getKurtosis(double[] values) { Kurtosis ks = new Kurtosis(); return ks.evaluate(values); }