public class FloatRingBuffer extends FloatClockedSignalSource
FloatSignalSource.CompilableFloatBinaryOperator, FloatSignalSource.FloatAddOperator, FloatSignalSource.FloatDivOperator, FloatSignalSource.FloatMultOperator, FloatSignalSource.FloatSubOperator
SignalSource.AddOperator, SignalSource.CompilableBinaryOperator, SignalSource.Constant<A>, SignalSource.DivOperator, SignalSource.MultOperator, SignalSource.SubOperator
out
abs, add, clip, cos, div, E, exp, log, LOG2, metaGetAsFloat, mult, neg, PI, sin, sqrt, SQRT2, square, sub
DEFAULT_AFAP_INTERRUPT_LATENCY, DEFAULT_SLEEP_TIME_MS
Constructor and Description |
---|
FloatRingBuffer(FloatSignalSource source,
float... initial) |
FloatRingBuffer(FloatSignalSource source,
int size) |
Modifier and Type | Method and Description |
---|---|
FloatClockedSignalSource |
average() |
<V,L> void |
compileControlFlow(CompilationContext<V,L> context) |
FloatClockedSignalSource |
heap(FloatRelation more) |
float |
lookback(int dist) |
FloatClockedSignalSource |
max() |
FloatClockedSignalSource |
min() |
void |
run()
Processes an event.
|
FloatClockedSignalSource |
sum() |
delayedBy, delayedWith, doCompileDataFlow, get, getAsFloat, iterate, logged, logged, random, randomNormal, randomUniform, repeat, slide, suppliedBy, suppliedBy, switchOver
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
add, check, clip, clocked, compileDataFlow, constant, div, guard, logger, logger, lowerLogSpread, map, mult, project, project, project, sub, upperLogSpread, zipWith, zipWith
adHoc, afap, afap, andThen, asAsynchronousSwingEvent, every, every, frequently, frequently, frequently, sequence, times, times
public FloatRingBuffer(FloatSignalSource source, int size)
public FloatRingBuffer(FloatSignalSource source, float... initial)
public void run()
Realtime
Any implementation of this method should complete promptly and normally. In particular it must not block indefinitely.
public <V,L> void compileControlFlow(CompilationContext<V,L> context)
public float lookback(int dist)
public FloatClockedSignalSource sum()
public FloatClockedSignalSource average()
public FloatClockedSignalSource max()
public FloatClockedSignalSource min()
public FloatClockedSignalSource heap(FloatRelation more)