I
- the input typeO
- the output typepublic class ExponentialStops<I,O> extends IterableStops<I,O,Stop<I,O>>
Stops
implementation for exponential functionsConstructor and Description |
---|
ExponentialStops(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() |
String |
getTypeName()
INTERNAL USAGE ONLY
|
Iterator<Stop<I,O>> |
iterator() |
int |
size() |
Map<String,Object> |
toValueObject()
INTERNAL USAGE ONLY
|
ExponentialStops<I,O> |
withBase(float base)
Set the exponential base
|
toString
categorical, exponential, identity, interval
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
forEach, spliterator
@SafeVarargs public ExponentialStops(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 Map<String,Object> toValueObject()
toValueObject
in class Stops<I,O>
public String getTypeName()
getTypeName
in class Stops<I,O>
© 2015–2017 Mapbox. All rights reserved.