Class Statistics

java.lang.Object
de.florianmichael.rclasses.math.Statistics

public class Statistics extends Object
  • 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.