public class EulerIntegrator extends java.lang.Object implements Integrator
Constructor and Description |
---|
EulerIntegrator()
Uses default step size of .0001
|
EulerIntegrator(float stepSize) |
Modifier and Type | Method and Description |
---|---|
Integrator |
clone() |
float |
getStepSize() |
TimeSeries |
integrate(DynamicalSystem system,
TimeSeries input)
Linear interpolation is performed between given input points.
|
void |
setStepSize(float stepSize) |
public EulerIntegrator(float stepSize)
stepSize
- Timestep size (dt)public EulerIntegrator()
public float getStepSize()
public void setStepSize(float stepSize)
stepSize
- Timestep sizepublic TimeSeries integrate(DynamicalSystem system, TimeSeries input)
integrate
in interface Integrator
system
- The DynamicalSystem to solve.input
- Input vector to the system, defined at the desired start and end times
of integration, and optionally at times in between. The way in which the
integrator interpolates between inputs at different times is decided by the
Integrator implementation.Integrator.integrate(ca.nengo.dynamics.DynamicalSystem, ca.nengo.util.TimeSeries)
public Integrator clone() throws java.lang.CloneNotSupportedException
clone
in interface Integrator
clone
in class java.lang.Object
java.lang.CloneNotSupportedException
- is clone operation fails