|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectas.clynx.audio.statistic.AbstractMeanCalc
as.clynx.audio.statistic.ArithmeticMean
public class ArithmeticMean
The class ArithmeticMean.java calculates the arithmetic mean.
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 |
---|
public ArithmeticMean(javax.sound.sampled.AudioFormat format)
format
- public ArithmeticMean()
Method Detail |
---|
public void addValue(int value)
AbstractMeanCalc
addValue
in class AbstractMeanCalc
public double getTopMean()
AbstractMeanCalc
getTopMean
in class AbstractMeanCalc
public double getBotMean()
AbstractMeanCalc
getBotMean
in class AbstractMeanCalc
public double getMean()
AbstractMeanCalc
getMean
in class AbstractMeanCalc
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |