|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.robotics.ode.Euler
public class Euler
This class implements forward Euler integration method.
Field Summary |
---|
Fields inherited from interface javax.robotics.ode.Solver |
---|
startTime |
Constructor Summary | |
---|---|
Euler(double dt,
RVector initialCondition,
DerivableFunction target)
Defines numerical integration for x' = f(x) differential equation. |
Method Summary | |
---|---|
RVector |
getInitialCondition()
Gets the initial condition for position x(0). |
RVector |
getLastValue()
Gets the current value of position x computed by step function. |
double |
getSampleTime()
Gets the interval of integration. |
double |
getTime()
Gets current time of integration. |
void |
setInitialCondition(RVector initialCondition)
Sets the initial condition for position x(0) = x0. |
void |
setSampleTime(double dt)
Sets the interval of integration. |
void |
step(RVector x)
Computes step integration from time t to t+dt of x' = f(x). |
RVector |
xDot(RVector x)
Derivate prime function x' = f(x). |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Euler(double dt, RVector initialCondition, DerivableFunction target)
dt
- time interval of integration [sec]initialCondition
- initial condition at time zero x(0).target
- differential equation to be integratedMethod Detail |
---|
public final void setSampleTime(double dt)
Solver
setSampleTime
in interface Solver
dt
- interval [sec]public final double getSampleTime()
Solver
getSampleTime
in interface Solver
public final void setInitialCondition(RVector initialCondition)
Solver
setInitialCondition
in interface Solver
public final RVector getInitialCondition()
Solver
getInitialCondition
in interface Solver
public final RVector getLastValue()
Solver
step
function.
getLastValue
in interface Solver
public final double getTime()
Solver
getTime
in interface Solver
public void step(RVector x)
Solver
step
in interface Solver
x
- argument of f(x)public RVector xDot(RVector x)
DerivableFunction
xDot
in interface DerivableFunction
x
- indipendent variable
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |