public static class Function.NaturalSpline extends Function implements Function.Spline
Function.AboutEqual, Function.AtLeast, Function.AtMost, Function.CatmullRomSpline, Function.Clip, Function.Composition, Function.Exponential, Function.GreaterThan, Function.Identity, Function.LessThan, Function.NaturalSpline, Function.NotImplemented, Function.ReLU, Function.Scaled, Function.Sigmoid, Function.Signum, Function.SignumWithoutZero, Function.Sinus, Function.SoftMax, Function.Spline, Function.TanH| Modifier and Type | Field and Description |
|---|---|
protected double[] |
data
The data used for curve calculation
|
| Constructor and Description |
|---|
NaturalSpline()
Create a new instance.
|
NaturalSpline(double[] data)
Create a new instance, using the given data.
|
| Modifier and Type | Method and Description |
|---|---|
Function.NaturalSpline |
clone()
Return a deep copy of this object.
|
void |
fromXML(org.jdom2.Element element)
Reads attributes from XML tree.
|
double[] |
getData()
Return the spline coefficient data array.
|
double |
getMaxValue()
Return Double.MAX_VALUE; no minimum estimation is implemented.
|
double |
getMinValue()
Return -Double.MAX_VALUE; no minimum estimation is implemented.
|
double |
map(double value)
Return the function value at the given point.
|
double |
mapDerivative(double value)
Return the derivative function value at the given point.
|
void |
setData(double[] data)
Set a new spline coefficient data array, and re-calculate the precomputed values.
|
org.jdom2.Element |
toXML(org.jdom2.Element element)
Adds a function element to XML.
|
create, mapSecondDerivative, setParametersprotected double[] data
data[0] contains the scale factor of uniform distant x values in the interval [-1,1], the other values are the y coordinates of the control points (the number of control points is data.length - 1)
public NaturalSpline()
public NaturalSpline(double[] data)
public Function.NaturalSpline clone()
Functionpublic double map(double value)
public double mapDerivative(double value)
mapDerivative in class Functionpublic double getMinValue()
getMinValue in class Functionpublic double getMaxValue()
getMaxValue in class Functionpublic double[] getData()
getData in interface Function.Splinepublic void setData(double[] data)
setData in interface Function.Splinepublic void fromXML(org.jdom2.Element element)
Storable