I - the input typeO - the output typepublic class ExponentialStops<I,O> extends IterableStops<I,O,Stop<I,O>>
Stops implementation for exponential functions| Constructor and Description |
|---|
ExponentialStops(java.lang.Float base,
Stop<I,O>... stops)
Create exponential stops with an explicit base.
|
ExponentialStops(Stop<I,O>... stops)
Create exponential stops without an explicit base.
|
| Modifier and Type | Method and Description |
|---|---|
float |
getBase() |
java.lang.String |
getTypeName()
INTERNAL USAGE ONLY
|
java.util.Iterator<Stop<I,O>> |
iterator() |
int |
size() |
java.util.Map<java.lang.String,java.lang.Object> |
toValueObject()
INTERNAL USAGE ONLY
|
ExponentialStops<I,O> |
withBase(float base)
Set the exponential base
|
toStringcategorical, exponential, identity, interval@SafeVarargs
public ExponentialStops(java.lang.Float base,
@NonNull
Stop<I,O>... stops)
Stops.exponential(Stop[])base - The exponential base of the interpolation curve. It controls the rate at which the function output
increases. Higher values make the output increase more towards the high end of the range.
With values close to 1 the output increases linearly.stops - the stops@SafeVarargs
public ExponentialStops(@NonNull
Stop<I,O>... stops)
Stops.exponential(Stop[])stops - the stopspublic ExponentialStops<I,O> withBase(float base)
base - the base to use in the exponential functionpublic float getBase()
public java.util.Map<java.lang.String,java.lang.Object> toValueObject()
toValueObject in class Stops<I,O>public java.lang.String getTypeName()
getTypeName in class Stops<I,O>