COPASI API
4.16.103
|
#include <CInterpolation.h>
Public Member Functions | |
CInterpolation () | |
CInterpolation (size_t stateNum, size_t reactionNum) | |
CStateRecord * | getInterpolationState () |
void | recordReset () |
void | recordState (const C_FLOAT64 time, const C_FLOAT64 *y) |
~CInterpolation () | |
Private Member Functions | |
void | calculateFiringTime () |
void | calculateState () |
C_FLOAT64 | interpolation (C_FLOAT64 x) |
Private Attributes | |
size_t | mBeginRecordIndex |
size_t | mHaveRecordNum |
CStateRecord * | mpInterpolationState |
CStateRecord * | mpState |
C_FLOAT64 * | mpX |
C_FLOAT64 * | mpY |
bool | mShiftBeginIndex |
size_t | mStateNum |
Friends | |
void | printInterpolation (const CInterpolation &interp) |
Definition at line 102 of file CInterpolation.h.
CInterpolation::CInterpolation | ( | ) |
Default Constructor
Definition at line 95 of file CInterpolation.cpp.
CInterpolation::CInterpolation | ( | size_t | stateNum, |
size_t | reactionNum | ||
) |
Assignment Constructor
Definition at line 106 of file CInterpolation.cpp.
References mpInterpolationState, and mpState.
CInterpolation::~CInterpolation | ( | ) |
Destructor
Definition at line 125 of file CInterpolation.cpp.
References mpInterpolationState, mpState, mpX, mpY, mStateNum, pdelete, pdeletev, and CStateRecord::~CStateRecord().
|
private |
Calculate time when slow reaction fires
Definition at line 232 of file CInterpolation.cpp.
References C_FLOAT64, CStateRecord::getArray(), CStateRecord::getSlowPropensitySum(), CStateRecord::getTime(), interpolation(), mBeginRecordIndex, mHaveRecordNum, mpInterpolationState, mpState, mpX, mpY, and mStateNum.
Referenced by getInterpolationState().
|
private |
Calculate Model State at event time
Definition at line 254 of file CInterpolation.cpp.
References C_FLOAT64, CStateRecord::getArray(), CStateRecord::getArrayLen(), CStateRecord::getTime(), interpolation(), mBeginRecordIndex, mHaveRecordNum, mpInterpolationState, mpState, mpX, mpY, and mStateNum.
Referenced by getInterpolationState().
CStateRecord * CInterpolation::getInterpolationState | ( | ) |
Retrieve the model State at the slow reaction firing time by call calculateFiringTime() and calculateState()
Definition at line 286 of file CInterpolation.cpp.
References calculateFiringTime(), calculateState(), and mpInterpolationState.
Referenced by CHybridMethodODE45::doInverseInterpolation().
Calculate Interpolation Value
C_FLOAT64 | x |
Definition at line 184 of file CInterpolation.cpp.
References C_FLOAT64, mHaveRecordNum, mpX, and mpY.
Referenced by calculateFiringTime(), and calculateState().
void CInterpolation::recordReset | ( | ) |
Reset the record
Definition at line 177 of file CInterpolation.cpp.
References mBeginRecordIndex, mHaveRecordNum, and mShiftBeginIndex.
Referenced by CHybridMethodODE45::doInverseInterpolation().
Load the New State const C_FLOAT64 time, const unsigned C_INT32 len const C_FLOAT54 *y
Definition at line 141 of file CInterpolation.cpp.
References C_FLOAT64, CStateRecord::getArray(), CStateRecord::getArrayLen(), mBeginRecordIndex, mHaveRecordNum, mpState, mShiftBeginIndex, and mStateNum.
Referenced by CHybridMethodODE45::doInverseInterpolation().
|
friend |
|
private |
An integer index indicating which state is the first available one for interpolation
Definition at line 199 of file CInterpolation.h.
Referenced by calculateFiringTime(), calculateState(), printInterpolation(), recordReset(), and recordState().
|
private |
An integer indicating how many state has been recorded
Definition at line 204 of file CInterpolation.h.
Referenced by calculateFiringTime(), calculateState(), interpolation(), printInterpolation(), recordReset(), and recordState().
|
private |
A pointer of CStateRecord Object recording the state of model at slow reaction firing time calculated by interpolation
Definition at line 178 of file CInterpolation.h.
Referenced by calculateFiringTime(), calculateState(), CInterpolation(), getInterpolationState(), and ~CInterpolation().
|
private |
Pointer to an array of class CStateRecord
Definition at line 171 of file CInterpolation.h.
Referenced by calculateFiringTime(), calculateState(), CInterpolation(), printInterpolation(), recordState(), and ~CInterpolation().
|
private |
A C_FLOAT64 pointer for interpolation array x
Definition at line 183 of file CInterpolation.h.
Referenced by calculateFiringTime(), calculateState(), interpolation(), and ~CInterpolation().
|
private |
A C_FLOAT64 pointer for interpolation array y
Definition at line 188 of file CInterpolation.h.
Referenced by calculateFiringTime(), calculateState(), interpolation(), and ~CInterpolation().
|
private |
A Bool variable indicating whether the mBeginRecordIndex should be shift
Definition at line 210 of file CInterpolation.h.
Referenced by printInterpolation(), recordReset(), and recordState().
|
private |
Length of Vector mState
Definition at line 193 of file CInterpolation.h.
Referenced by calculateFiringTime(), calculateState(), printInterpolation(), recordState(), and ~CInterpolation().