Package pamMaths

Class Mean

java.lang.Object
pamMaths.Mean

public class Mean extends Object
  • Constructor Summary Link icon

    Constructors
    Constructor
    Description
     
  • Method Summary Link icon

    Modifier and Type
    Method
    Description
    static double
    getMean(double[] data)
    Calculate the mean of all data in an array
    static double
    getMean(double[] data, int n)
    Calculate the mean of n elements in the array

    Methods inherited from class java.lang.Object Link icon

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details Link icon

    • Mean Link icon

      public Mean()
  • Method Details Link icon

    • getMean Link icon

      public static double getMean(double[] data)
      Calculate the mean of all data in an array
      Parameters:
      data -
      Returns:
      mean of data
    • getMean Link icon

      public static double getMean(double[] data, int n)
      Calculate the mean of n elements in the array
      Parameters:
      data -
      n -
      Returns:
      mean of first n points