Class TriangleWave

java.lang.Object
io.nosqlbench.virtdata.library.basics.shared.from_long.to_long.TriangleWave
All Implemented Interfaces:
LongUnaryOperator

public class TriangleWave extends Object implements LongUnaryOperator
Computes the distance between the current input value and the beginning of the phase, according to a phase length. This means that for a phase length of 100, the values will range from 0 (for cycle values 0 and 100 or any multiple thereof) and 50, when the cycle value falls immediately at the middle of the phase.
  • Constructor Details

    • TriangleWave

      public TriangleWave(long phaseLength, Object scaleFunc)
    • TriangleWave

      public TriangleWave(long phaseLength)
  • Method Details