C
- collection of valuesE
- the type of the aggregated valuespublic class Aggregate<C,E> extends AbstractSignalProcessor<C,E>
Applies an AggregateFunction
like AggregateFunctions.ARITHMETIC_MEAN
to each provided collection (usually a RealAudioBuffer
or a float array).
AggregateFunctions.ARITHMETIC_MEAN
,
AggregateFunctions.EUCLIDEAN_NORM
,
AggregateFunctions.ZERO_CROSSING_RATE
,
AggregateFunctions.VARIANCE
,
AggregateFunctions.STANDARD_DEVIATION
,
AggregateFunctions.ROOT_MEAN_SQUARE
,
AudioBufferFunctions.createAggregateFunction(com.tagtraum.jipes.math.AggregateFunction)
lastOut, signalProcessorSupport
Constructor and Description |
---|
Aggregate() |
Aggregate(AggregateFunction<C,E> aggregateFunction) |
Aggregate(AggregateFunction<C,E> aggregateFunction,
Object id) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
AggregateFunction<C,E> |
getAggregateFunction() |
int |
hashCode() |
protected E |
processNext(C buffer)
Processes the given input and returns some output.
|
void |
setAggregateFunction(AggregateFunction<C,E> aggregateFunction) |
String |
toString() |
connectTo, connectTo, connectTo, disconnectFrom, flush, getConnectedProcessors, getConnectedSource, getId, getOutput, process, read, reset, setId
public Aggregate()
public Aggregate(AggregateFunction<C,E> aggregateFunction)
public Aggregate(AggregateFunction<C,E> aggregateFunction, Object id)
public AggregateFunction<C,E> getAggregateFunction()
public void setAggregateFunction(AggregateFunction<C,E> aggregateFunction)
protected E processNext(C buffer) throws IOException
AbstractSignalProcessor
processNext
in class AbstractSignalProcessor<C,E>
buffer
- input guaranteed not to be null
.IOException
- if an IO error occursCopyright © 2011–2020 tagtraum industries incorporated. All rights reserved.