Klasse Mean

java.lang.Object
opennlp.tools.util.eval.Mean

public class Mean extends Object
Calculates the arithmetic mean of values added with the add(double) method.
  • Konstruktorübersicht

    Konstruktoren
    Konstruktor
    Beschreibung
     
  • Methodenübersicht

    Modifizierer und Typ
    Methode
    Beschreibung
    void
    add(double value)
    Adds a value to the arithmetic mean.
    void
    add(double value, long count)
    Adds a value count times to the arithmetic mean.
    long
     
    double
     
     

    Von Klasse geerbte Methoden java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Konstruktordetails

    • Mean

      public Mean()
  • Methodendetails

    • add

      public void add(double value)
      Adds a value to the arithmetic mean.
      Parameter:
      value - the value which should be added to the arithmetic mean.
    • add

      public void add(double value, long count)
      Adds a value count times to the arithmetic mean.
      Parameter:
      value - the value which should be added to the arithmetic mean.
      count - number of times the value should be added to arithmetic mean.
    • mean

      public double mean()
      Gibt zurück:
      Retrieves the mean of all values added with add(double) or 0 if there are zero add values.
    • count

      public long count()
      Gibt zurück:
      Retrieves the number of times a value was added to the mean.
    • toString

      public String toString()
      Setzt außer Kraft:
      toString in Klasse Object
      Gibt zurück:
      A human-readable String representation.