public class NetworkLeakyIntegratorWithIntrinsicPlasticityStepHandler
extends java.lang.Object
implements org.apache.commons.math3.ode.sampling.StepHandler
Constructor and Description |
---|
NetworkLeakyIntegratorWithIntrinsicPlasticityStepHandler(java.util.Collection<java.util.List<java.lang.Double>> patterns,
java.io.File dataDirectory) |
Modifier and Type | Method and Description |
---|---|
void |
everyStep(double t,
double[] state) |
void |
handleStep(org.apache.commons.math3.ode.sampling.StepInterpolator interpolator,
boolean isLast)
Handle the last accepted step
|
void |
init(double t0,
double[] state,
double t)
Initialize step handler at the start of an ODE integration.
|
void |
printNeuronState(double t,
double[] state,
java.io.PrintStream out) |
void |
printPatternActivity(double t,
double[] state,
java.io.PrintStream out) |
void |
printPatternOverlap(double t,
double[] state,
java.io.PrintStream out)
Print the overlap of the given state with all the patterns successively.
|
public NetworkLeakyIntegratorWithIntrinsicPlasticityStepHandler(java.util.Collection<java.util.List<java.lang.Double>> patterns, java.io.File dataDirectory) throws java.io.FileNotFoundException
java.io.FileNotFoundException
public void handleStep(org.apache.commons.math3.ode.sampling.StepInterpolator interpolator, boolean isLast)
org.apache.commons.math3.ode.sampling.StepHandler
handleStep
in interface org.apache.commons.math3.ode.sampling.StepHandler
interpolator
- interpolator for the last accepted step. For
efficiency purposes, the various integrators reuse the same
object on each call, so if the instance wants to keep it across
all calls (for example to provide at the end of the integration a
continuous model valid throughout the integration range, as the
ContinuousOutputModel
class does), it should build a local copy
using the clone method of the interpolator and store this copy.
Keeping only a reference to the interpolator and reusing it will
result in unpredictable behavior (potentially crashing the application).isLast
- true if the step is the last onepublic void init(double t0, double[] state, double t)
org.apache.commons.math3.ode.sampling.StepHandler
This method is called once at the start of the integration. It may be used by the step handler to initialize some internal data if needed.
init
in interface org.apache.commons.math3.ode.sampling.StepHandler
t0
- start value of the independent time variablestate
- array containing the start value of the state vectort
- target time for the integrationpublic void everyStep(double t, double[] state)
public void printNeuronState(double t, double[] state, java.io.PrintStream out)
public void printPatternActivity(double t, double[] state, java.io.PrintStream out)
public void printPatternOverlap(double t, double[] state, java.io.PrintStream out)
t
- time $t$state
- network stateout
- stream to print to