Class BaseBigNumberEMOperator<T>

Direct Known Subclasses:
BigDecimalEMOperator, BigIntegerEMOperator

public abstract class BaseBigNumberEMOperator<T> extends BaseObjectUpdateByOperator<BigDecimal>
  • Field Details

    • control

      protected final OperationControl control
    • reverseWindowScaleUnits

      protected final double reverseWindowScaleUnits
      For EM operators, we can allow floating-point tick/time units.
    • opAlpha

      protected final BigDecimal opAlpha
    • opOneMinusAlpha

      protected final BigDecimal opOneMinusAlpha
    • valueSource

      protected ColumnSource<?> valueSource
  • Constructor Details

    • BaseBigNumberEMOperator

      public BaseBigNumberEMOperator(@NotNull @NotNull MatchPair pair, @NotNull @NotNull String[] affectingColumns, @NotNull @NotNull OperationControl control, @Nullable @Nullable String timestampColumnName, double windowScaleUnits, @NotNull @NotNull BaseBigNumberEMOperator.EmFunction aggFunction)
      An operator that computes an EM output from a big number column using an exponential decay function.
      Parameters:
      pair - the MatchPair that defines the input/output for this operation
      affectingColumns - the names of the columns that affect this ema
      control - defines how to handle null input values.
      timestampColumnName - the name of the column containing timestamps for time-based calcuations
      windowScaleUnits - the smoothing window for the EMA. If no timestampColumnName is provided, this is measured in ticks, otherwise it is measured in nanoseconds
  • Method Details