Class DiscreteFunction<X,Y>
java.lang.Object
org.jscience.mathematics.function.Function<X,Y>
org.jscience.mathematics.function.DiscreteFunction<X,Y>
- All Implemented Interfaces:
Serializable
,javolution.lang.Realtime
This class represents a function defined from a mapping betweem two sets (points and values).
Instance of this class can be used to approximate continuous functions or to numerically solve differential systems.
- See Also:
-
Constructor Summary
ConstructorDescriptionDiscreteFunction
(SortedMap<X, Y> pointValues, Interpolator<X, Y> interpolator, Variable<X> variable) Creates the discrete function for the specified point-value entries. -
Method Summary
Modifier and TypeMethodDescriptionevaluate()
Evaluates this function using itsvariables
current values.Returns the interpolator used by this discrete function.Returns the point-value entries of this discrete function.Returns a lexically ordered list of the variables (or arguments) for this function (empty list for constant functions).javolution.text.Text
toText()
Returns the textual representation of this real-time object (equivalent totoString
except that the returned value can be allocated from the local context space).
-
Constructor Details
-
DiscreteFunction
public DiscreteFunction(SortedMap<X, Y> pointValues, Interpolator<X, Y> interpolator, Variable<X> variable) Creates the discrete function for the specified point-value entries.- Parameters:
pointValues
- the point-value entries of this function.interpolator
- the interpolator.variable
- this function variable.
-
-
Method Details
-
getPointValues
Returns the point-value entries of this discrete function.- Returns:
- the point-value mapping.
-
getInterpolator
Returns the interpolator used by this discrete function.- Returns:
- the interpolator used to estimate the value between two points.
-
evaluate
Description copied from class:Function
Evaluates this function using itsvariables
current values. -
getVariables
Description copied from class:Function
Returns a lexically ordered list of the variables (or arguments) for this function (empty list for constant functions).- Specified by:
getVariables
in classFunction<X,
Y> - Returns:
- this function current unset variables (sorted).
-
toText
public javolution.text.Text toText()Description copied from class:Function
Returns the textual representation of this real-time object (equivalent totoString
except that the returned value can be allocated from the local context space).
-