|
JScience v3.3 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjavolution.context.RealtimeObject
org.jscience.mathematics.functions.Function<X,Y>
org.jscience.mathematics.functions.DiscreteFunction<X,Y>
public final class DiscreteFunction<X,Y>
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.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class javolution.context.RealtimeObject |
|---|
RealtimeObject.Factory<T extends RealtimeObject> |
| Nested classes/interfaces inherited from interface javolution.context.Realtime |
|---|
Realtime.ObjectSpace |
| Constructor Summary | |
|---|---|
DiscreteFunction(java.util.SortedMap<X,Y> pointValues,
Interpolator<X,Y> interpolator,
Variable<X> variable)
Creates the discrete function for the specified point-value entries. |
|
| Method Summary | |
|---|---|
Y |
evaluate()
Evaluates this function using its variables current
values. |
Interpolator<X,Y> |
getInterpolator()
Returns the interpolator used by this discrete function. |
java.util.SortedMap<X,Y> |
getPointValues()
Returns the point-value entries of this discrete function. |
java.util.List<Variable<X>> |
getVariables()
Returns a lexically ordered list of the variables (or arguments) for this function (empty list for constant functions). |
boolean |
move(Realtime.ObjectSpace os)
Moves this real-time object to the specified object space. |
| Methods inherited from class org.jscience.mathematics.functions.Function |
|---|
compose, differentiate, divide, equals, evaluate, evaluate, getVariable, hashCode, integrate, minus, plus, pow, times, toText |
| Methods inherited from class javolution.context.RealtimeObject |
|---|
export, isLocal, moveHeap, preserve, toString, unpreserve |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public DiscreteFunction(java.util.SortedMap<X,Y> pointValues,
Interpolator<X,Y> interpolator,
Variable<X> variable)
pointValues - the point-value entries of this function.interpolator - the interpolator.variable - this function variable.| Method Detail |
|---|
public java.util.SortedMap<X,Y> getPointValues()
public Interpolator<X,Y> getInterpolator()
public Y evaluate()
Functionvariables current
values.
evaluate in class Function<X,Y>public boolean move(Realtime.ObjectSpace os)
Function
move in interface Realtimemove in class Function<X,Y>os - the object space to move this real-time object to.
true if the move has to be propagated to
external real-time references; false otherwise.public java.util.List<Variable<X>> getVariables()
Function
getVariables in class Function<X,Y>
|
JScience v3.3 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||