as.clynx.audio.statistic
Class ArithmeticMean

java.lang.Object
  extended by as.clynx.audio.statistic.AbstractMeanCalc
      extended by as.clynx.audio.statistic.ArithmeticMean

public class ArithmeticMean
extends AbstractMeanCalc

The class ArithmeticMean.java calculates the arithmetic mean.

Version:
cLynx v.1.2, JDK 6.0: 12.10.2007
Author:
Andreas Senfter - andreas@senfters.com

Constructor Summary
ArithmeticMean()
          Constructor
ArithmeticMean(javax.sound.sampled.AudioFormat format)
          Constructor
 
Method Summary
 void addValue(int value)
          adds a sample value
 double getBotMean()
          calculates the mean of all passed samples which are greater than bound.
 double getMean()
          calculates the mean of all passed samples.
 double getTopMean()
          calculates the mean of all passed samples which are smaller than bound.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ArithmeticMean

public ArithmeticMean(javax.sound.sampled.AudioFormat format)
Constructor

Parameters:
format -

ArithmeticMean

public ArithmeticMean()
Constructor

Method Detail

addValue

public void addValue(int value)
Description copied from class: AbstractMeanCalc
adds a sample value

Specified by:
addValue in class AbstractMeanCalc

getTopMean

public double getTopMean()
Description copied from class: AbstractMeanCalc
calculates the mean of all passed samples which are smaller than bound.

Specified by:
getTopMean in class AbstractMeanCalc
Returns:
the mean of all passed samples which are smaller than bound.

getBotMean

public double getBotMean()
Description copied from class: AbstractMeanCalc
calculates the mean of all passed samples which are greater than bound.

Specified by:
getBotMean in class AbstractMeanCalc
Returns:
the mean of all passed samples which are greater than bound.

getMean

public double getMean()
Description copied from class: AbstractMeanCalc
calculates the mean of all passed samples.

Specified by:
getMean in class AbstractMeanCalc
Returns:
the mean of all passed samples.