public class Function_2 extends Function
This class Function_2 represents a generic Type 2, exponentail
interpolation function type. Type 2 functions include a set of parameters that
define an exponential interpolation of one input value and n output values:
Values of Domain must constrain x in such a way that if
N is not an integer, all values of x must be non-negative, and if
N is negative, no value of x may be zero. Typically,
Domain is declared as [0.0 1.0], and N is a postive
number. The Range attribute is optional and can be used to clip
the output to a specified range. Note that when N is 1, the
function performs a linear interpolation between C0 and
C1; therefore, the function cna also be expressed as a sampled
function (type 0).
Function| Modifier and Type | Field and Description |
|---|---|
static Name |
C0_KEY |
static Name |
C1_KEY |
static Name |
N_KEY |
domain, DOMAIN_NAME, functionType, FUNCTIONTYPE_NAME, range, RANGE_NAME| Modifier and Type | Method and Description |
|---|---|
float[] |
calculate(float[] x)
Exponential Interpolation calculation.
|
java.lang.String |
toString() |
getDomain, getFunction, getFunctionType, getRange, interpolatepublic static final Name N_KEY
public static final Name C0_KEY
public static final Name C1_KEY