org.robokind.api.audio.processing
Class MeanCalculator
java.lang.Object
org.robokind.api.audio.processing.MeanCalculator
- All Implemented Interfaces:
- SampleProcessor
public class MeanCalculator
- extends Object
- implements SampleProcessor
- Author:
- Matthew Stevenson
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MeanCalculator
public MeanCalculator(int channels)
addProcessorListener
public void addProcessorListener(SampleProcessor.ProcessorListener listener)
- Specified by:
addProcessorListener in interface SampleProcessor
removeProcessorListener
public void removeProcessorListener(SampleProcessor.ProcessorListener listener)
- Specified by:
removeProcessorListener in interface SampleProcessor
fireProcessorUpdate
protected void fireProcessorUpdate(int count,
int total)
processSamples
public void processSamples(double[][] samples,
int frame,
int total)
- Specified by:
processSamples in interface SampleProcessor
getMean
public double getMean(int c)
getStd
public double getStd(int c)
normalize
public double normalize(int c,
double x)
Copyright © 2011-2014. All Rights Reserved.