public abstract class Ode extends MultiMultiFunction implements NamedParameters, VectorValued
Modifier and Type | Field and Description |
---|---|
protected DblParamSet |
Param |
protected DblMatrix |
T |
protected java.util.HashMap |
variableNames |
protected DblMatrix |
Y |
domainDimension, rangeDimension
Constructor and Description |
---|
Ode() |
Modifier and Type | Method and Description |
---|---|
abstract java.lang.String |
about()
Gives some information about this ODE.
|
abstract int |
dimension()
Returns the number of intrinsic state variables.
|
int |
domainDimension()
The domain dimension is always equal to the number of intrinsic state variables plus one
to account for time as a variable.
|
abstract OdeSet |
getDefaultOptions()
By providing a default OdeSet an ODE can provide for it's own default parameters.
|
abstract DblMatrix |
getDeriv() |
DblMatrix |
getDerivChk()
Returns the current derivative (or rhs) but also checks for
reasonableness of the answer.
|
DblMatrix |
getEvents() |
DblMatrix |
getJacobn() |
DblMatrix |
getJacobnPattern() |
DblMatrix |
getParam(java.lang.String name) |
DblMatrix |
getT() |
DblMatrix |
getValue() |
DblMatrix |
getValueAt(DblMatrix X)
This is provided for compatability with the AbstractFunction.
|
DblMatrix |
getValueAt(DblMatrix[] X)
This is provided for compatability with the AbstractFunction.
|
DblMatrix |
getVar(DblMatrix W,
java.lang.String name)
Gets the column of the input matrix according to the current variable name mapping.
|
DblMatrix |
getVar(java.lang.String name)
Gets the column of the Y field according to the current variable name mapping.
|
java.lang.String[] |
getVariableNames()
Gets the current variable names
|
DblMatrix |
getY() |
boolean |
hasParameter(java.lang.String name) |
java.lang.String[] |
parameterSet() |
int |
rangeDimension()
Returns the dimension of the lhs of a system of ODE's.
|
void |
replaceParams(DblParamSet X) |
void |
setParam(java.lang.String name,
DblMatrix value) |
void |
setT(DblMatrix T)
This sets the T pointer of the model to the input DblMatrix.
|
void |
setVar(DblMatrix W,
java.lang.String name,
DblMatrix V)
Sets the column of the input matrix according to the current variable name mapping.
|
void |
setVar(java.lang.String name,
DblMatrix val)
Change the current values of the state variables according to the current variable name
mapping.
|
void |
setVariableNames(java.lang.String[] s) |
void |
setY(DblMatrix Y)
This sets the Y pointer of the model to the input DblMatrix.
|
plotOver
plotOver
protected DblParamSet Param
protected DblMatrix T
protected DblMatrix Y
protected java.util.HashMap variableNames
public DblMatrix getVar(java.lang.String name)
public DblMatrix getVar(DblMatrix W, java.lang.String name)
public void setVar(java.lang.String name, DblMatrix val)
public void setVar(DblMatrix W, java.lang.String name, DblMatrix V)
public java.lang.String[] getVariableNames()
public void setVariableNames(java.lang.String[] s)
public abstract int dimension()
public int rangeDimension()
rangeDimension
in class AbstractFunction
public int domainDimension()
domainDimension
in class AbstractFunction
public void setT(DblMatrix T)
public void setY(DblMatrix Y)
public DblMatrix getT()
public DblMatrix getY()
public boolean hasParameter(java.lang.String name)
hasParameter
in interface NamedParameters
public DblMatrix getParam(java.lang.String name)
getParam
in interface NamedParameters
public void setParam(java.lang.String name, DblMatrix value)
setParam
in interface NamedParameters
public void replaceParams(DblParamSet X)
replaceParams
in interface NamedParameters
public java.lang.String[] parameterSet()
parameterSet
in interface NamedParameters
public DblMatrix getDerivChk()
public abstract DblMatrix getDeriv()
public DblMatrix getJacobn()
public DblMatrix getJacobnPattern()
public DblMatrix getEvents()
public DblMatrix getValue()
getValue
in interface VectorValued
public DblMatrix getValueAt(DblMatrix X)
getValueAt
in class AbstractFunction
public DblMatrix getValueAt(DblMatrix[] X)
getValueAt
in class AbstractFunction
public abstract OdeSet getDefaultOptions()
public abstract java.lang.String about()
Copyright © 2011, 2013. Daniel P. Dougherty