Class BasePrimitiveEmStdOperator.Context
java.lang.Object
io.deephaven.engine.table.impl.updateby.UpdateByOperator.Context
io.deephaven.engine.table.impl.updateby.internal.BaseDoubleUpdateByOperator.Context
io.deephaven.engine.table.impl.updateby.emstd.BasePrimitiveEmStdOperator.Context
- All Implemented Interfaces:
SafeCloseable,AutoCloseable
- Direct Known Subclasses:
ByteEmStdOperator.Context,CharEmStdOperator.Context,DoubleEmStdOperator.Context,FloatEmStdOperator.Context,IntEmStdOperator.Context,LongEmStdOperator.Context,ShortEmStdOperator.Context
- Enclosing class:
- BasePrimitiveEmStdOperator
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected doubleprotected doubleprotected doubleprotected final ChunkSink.FillFromContextprotected final WritableDoubleChunk<Values>protected longprotected longprotected doubleFields inherited from class io.deephaven.engine.table.impl.updateby.internal.BaseDoubleUpdateByOperator.Context
curVal, outputFillContext, outputValuesFields inherited from class io.deephaven.engine.table.impl.updateby.UpdateByOperator.Context
affectedPosChunk, influencerPosChunk, nullCount -
Method Summary
Methods inherited from class io.deephaven.engine.table.impl.updateby.internal.BaseDoubleUpdateByOperator.Context
accumulateCumulative, accumulateRolling, setValueChunks, writeNullToOutputChunk, writeToOutputChunk, writeToOutputColumnMethods inherited from class io.deephaven.engine.table.impl.updateby.UpdateByOperator.Context
isValueValid, pop, setPosChunks
-
Field Details
-
emaFillContext
-
emaValues
-
alpha
protected double alpha -
oneMinusAlpha
protected double oneMinusAlpha -
lastDt
protected long lastDt -
lastStamp
protected long lastStamp -
curEma
protected double curEma -
curVariance
protected double curVariance
-
-
Method Details
-
push
public void push(int pos, int count) Description copied from class:UpdateByOperator.ContextAdd values to the operators current data set- Specified by:
pushin classUpdateByOperator.Context- Parameters:
pos- the index in the associated chunk where this value can be found. Depending on the usage, might be a values chunk (for cumulative operators) or an influencer values chunk (for windowed). It is the task of the operator to pull the data from the chunk and use it properlycount- the number of items to push from the chunk
-
reset
public void reset()Description copied from class:UpdateByOperator.ContextReset the operator data values to a known state. This may occur during initialization or when a windowed operator has an empty window- Overrides:
resetin classBaseDoubleUpdateByOperator.Context
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceSafeCloseable- Overrides:
closein classBaseDoubleUpdateByOperator.Context
-