public class Reduce extends Object implements DoubleUnaryOperator
|a - offset|
to the primary interval [0, |period|)
.
Specifically, the computed value
is:
a - |period| * floor((a - offset) / |period|) - offset
.Constructor and Description |
---|
Reduce(double offset,
double period) |
Modifier and Type | Method and Description |
---|---|
double |
applyAsDouble(double x) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
andThen, compose, identity
public Reduce(double offset, double period)
offset
- Value that will be mapped to 0
.period
- Period.public double applyAsDouble(double x)
applyAsDouble
in interface DoubleUnaryOperator
Copyright © 2017–2022 The Apache Software Foundation. All rights reserved.