Package de.florianmichael.rclasses.math
Class Statistics
java.lang.Object
de.florianmichael.rclasses.math.Statistics
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic doubleaverageDouble(double... data) static doubleaverageDouble(float... data) static doubleaverageDouble(int... data) static doubleaverageDouble(long... data) static doubleaverageDouble(short... data) static floataverageFloat(double... data) static floataverageFloat(float... data) static floataverageFloat(int... data) static floataverageFloat(long... data) static floataverageFloat(short... data) static intaverageInt(double... data) static intaverageInt(float... data) static intaverageInt(int... data) static intaverageInt(long... data) static intaverageInt(short... data) static shortaverageShort(double... data) static shortaverageShort(float... data) static shortaverageShort(int... data) static shortaverageShort(long... data) static shortaverageShort(short... data) static doublekurtosis(double... data) static floatkurtosis(float... data) static doublemedian(double... data) static floatmedian(float... data) static doubleskewness(double... data) static floatskewness(float... data) static doublestandardDeviation(double... data) static floatstandardDeviation(float... data) static doublestandardDeviation(long... data) static doublevariance(double... data) static floatvariance(float... data) static doublevariance(long... data)
-
Constructor Details
-
Statistics
public Statistics()
-
-
Method Details
-
averageShort
public static short averageShort(short... data) - Parameters:
data- The data to average.- Returns:
- The average of the given data as short.
-
averageShort
public static short averageShort(int... data) - Parameters:
data- The data to average.- Returns:
- The average of the given data as short.
-
averageShort
public static short averageShort(long... data) - Parameters:
data- The data to average.- Returns:
- The average of the given data as short.
-
averageShort
public static short averageShort(float... data) - Parameters:
data- The data to average.- Returns:
- The average of the given data as short.
-
averageShort
public static short averageShort(double... data) - Parameters:
data- The data to average.- Returns:
- The average of the given data as short.
-
averageInt
public static int averageInt(short... data) - Parameters:
data- The data to average.- Returns:
- The average of the given data as int.
-
averageInt
public static int averageInt(int... data) - Parameters:
data- The data to average.- Returns:
- The average of the given data as int.
-
averageInt
public static int averageInt(long... data) - Parameters:
data- The data to average.- Returns:
- The average of the given data as int.
-
averageInt
public static int averageInt(float... data) - Parameters:
data- The data to average.- Returns:
- The average of the given data as int.
-
averageInt
public static int averageInt(double... data) - Parameters:
data- The data to average.- Returns:
- The average of the given data as int.
-
averageFloat
public static float averageFloat(short... data) - Parameters:
data- The data to average.- Returns:
- The average of the given data as float.
-
averageFloat
public static float averageFloat(int... data) - Parameters:
data- The data to average.- Returns:
- The average of the given data as float.
-
averageFloat
public static float averageFloat(long... data) - Parameters:
data- The data to average.- Returns:
- The average of the given data as float.
-
averageFloat
public static float averageFloat(float... data) - Parameters:
data- The data to average.- Returns:
- The average of the given data as float.
-
averageFloat
public static float averageFloat(double... data) - Parameters:
data- The data to average.- Returns:
- The average of the given data as float.
-
averageDouble
public static double averageDouble(short... data) - Parameters:
data- The data to average.- Returns:
- The average of the given data as double.
-
averageDouble
public static double averageDouble(int... data) - Parameters:
data- The data to average.- Returns:
- The average of the given data as double.
-
averageDouble
public static double averageDouble(long... data) - Parameters:
data- The data to average.- Returns:
- The average of the given data as double.
-
averageDouble
public static double averageDouble(float... data) - Parameters:
data- The data to average.- Returns:
- The average of the given data as double.
-
averageDouble
public static double averageDouble(double... data) - Parameters:
data- The data to average.- Returns:
- The average of the given data as double.
-
median
public static float median(float... data) - Parameters:
data- The data to calculate the median from.- Returns:
- The median of the given data.
-
median
public static double median(double... data) - Parameters:
data- The data to calculate the median from.- Returns:
- The median of the given data.
-
kurtosis
public static float kurtosis(float... data) - Parameters:
data- The data to calculate the kurtosis from.- Returns:
- The kurtosis of the given data.
-
kurtosis
public static double kurtosis(double... data) - Parameters:
data- The data to calculate the kurtosis from.- Returns:
- The kurtosis of the given data.
-
skewness
public static float skewness(float... data) - Parameters:
data- The data to calculate the skewness from.- Returns:
- The skewness of the given data.
-
skewness
public static double skewness(double... data) - Parameters:
data- The data to calculate the skewness from.- Returns:
- The skewness of the given data.
-
variance
public static float variance(float... data) - Parameters:
data- The data to calculate the variance from.- Returns:
- The variance of the given data.
-
variance
public static double variance(double... data) - Parameters:
data- The data to calculate the variance from.- Returns:
- The variance of the given data.
-
variance
public static double variance(long... data) - Parameters:
data- The data to calculate the variance from.- Returns:
- The variance of the given data.
-
standardDeviation
public static float standardDeviation(float... data) - Parameters:
data- The data to calculate the standard deviation from.- Returns:
- The standard deviation of the given data.
-
standardDeviation
public static double standardDeviation(double... data) - Parameters:
data- The data to calculate the standard deviation from.- Returns:
- The standard deviation of the given data.
-
standardDeviation
public static double standardDeviation(long... data) - Parameters:
data- The data to calculate the standard deviation from.- Returns:
- The standard deviation of the given data.
-