as.clynx.audio.statistic
Class RootMeanSquare

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

public class RootMeanSquare
extends AbstractMeanCalc

The class RootMeanSquare.java calculates the root mean square.

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

Constructor Summary
RootMeanSquare()
          Constructor
RootMeanSquare(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

RootMeanSquare

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

Parameters:
format -

RootMeanSquare

public RootMeanSquare()
Constructor

Method Detail

addValue

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

Specified by:
addValue in class AbstractMeanCalc

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.

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.

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.