|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.commons.math3.ode.ParameterJacobianWrapper
class ParameterJacobianWrapper
Wrapper class to compute Jacobian matrices by finite differences for ODE which do not compute them by themselves.
Field Summary | |
---|---|
private FirstOrderDifferentialEquations |
fode
Main ODE set. |
private Map<String,Double> |
hParam
Steps for finite difference computation of the Jacobian df/dp w.r.t. |
private ParameterizedODE |
pode
Raw ODE without Jacobian computation skill to be wrapped into a ParameterJacobianProvider. |
Constructor Summary | |
---|---|
ParameterJacobianWrapper(FirstOrderDifferentialEquations fode,
ParameterizedODE pode,
ParameterConfiguration[] paramsAndSteps)
Wrap a ParameterizedODE into a ParameterJacobianProvider . |
Method Summary | |
---|---|
void |
computeParameterJacobian(double t,
double[] y,
double[] yDot,
String paramName,
double[] dFdP)
Compute the Jacobian matrix of ODE with respect to one parameter. |
Collection<String> |
getParametersNames()
Get the names of the supported parameters. |
boolean |
isSupported(String name)
Check if a parameter is supported. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private final FirstOrderDifferentialEquations fode
private final ParameterizedODE pode
private final Map<String,Double> hParam
Constructor Detail |
---|
public ParameterJacobianWrapper(FirstOrderDifferentialEquations fode, ParameterizedODE pode, ParameterConfiguration[] paramsAndSteps)
ParameterizedODE
into a ParameterJacobianProvider
.
fode
- main first order differential equations setpode
- secondary problem, without parameter Jacobian computation skillparamsAndSteps
- parameters and steps to compute the Jacobians df/dpJacobianMatrices.setParameterStep(String, double)
Method Detail |
---|
public Collection<String> getParametersNames()
getParametersNames
in interface Parameterizable
Parameterizable.isSupported(String)
public boolean isSupported(String name)
Supported parameters are those listed by Parameterizable.getParametersNames()
.
isSupported
in interface Parameterizable
name
- parameter name to check
Parameterizable.getParametersNames()
public void computeParameterJacobian(double t, double[] y, double[] yDot, String paramName, double[] dFdP)
The parameter must be one given by Parameterizable.getParametersNames()
.
computeParameterJacobian
in interface ParameterJacobianProvider
t
- current value of the independent time variabley
- array containing the current value of the main state vectoryDot
- array containing the current value of the time derivative
of the main state vectorparamName
- name of the parameter to considerdFdP
- placeholder array where to put the Jacobian matrix of the
ODE with respect to the parameter
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |