public class Polynomial extends AbstractFunction implements Function
DIMENSION_PROPERTY
Constructor and Description |
---|
Polynomial(float[] coefficients) |
Modifier and Type | Method and Description |
---|---|
Function |
clone() |
float[] |
getCoefficients() |
int |
getOrder() |
float |
map(float[] from) |
void |
setCoefficients(float[] coefficients) |
void |
setOrder(int order) |
getCode, getDimension, getName, multiMap, setCode, setName
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getDimension, multiMap
public Polynomial(float[] coefficients)
coefficients
- Coefficients [a0 a1 a2 ...] in polynomial y = a0 + a1x + a2x^2 + ...public int getOrder()
public void setOrder(int order)
order
- Polynomial orderpublic float[] getCoefficients()
public void setCoefficients(float[] coefficients)
coefficients
- Coefficients [a0 a1 a2 ...] in polynomial y = a0 + a1x + a2x^2 + ...public float map(float[] from)
map
in interface Function
map
in class AbstractFunction
from
- Must have same length as getDimension()Function.map(float[])
public Function clone() throws java.lang.CloneNotSupportedException
clone
in interface Function
clone
in class AbstractFunction
java.lang.CloneNotSupportedException
- is super does not support clone