public class ThresholdFunction extends FollowerFunction
Constructor and Description |
---|
ThresholdFunction(Pattern pattern,
double threshold)
Create a ThresholdFunction that follows another pattern.
|
Modifier and Type | Method and Description |
---|---|
double |
call(Interval i)
Returns the value of the function at this point in the cycle.
|
public ThresholdFunction(Pattern pattern, double threshold)
pattern
- the pattern to be followedthreshold
- the >= threshold between 0.0 and 1.0public double call(Interval i)
ContinuousFunction
call
in class FollowerFunction
i
- a BigFraction of the cycleProcessing Library loom by Cora Johnson-Roberson. (c) 2014-2016