public class ArrayKineticConstantPropensityCalculator extends AbstractKineticConstantPropensityCalculator
AbstractKineticConstantPropensityCalculator
which uses an array
to store the constants for each reaction.Constructor and Description |
---|
ArrayKineticConstantPropensityCalculator(int[][] reactants,
double[] constants)
Create the propensity calculator with given constants and given reactant adjacency arrays
|
Modifier and Type | Method and Description |
---|---|
double |
getConstant(int i)
Gets the constant for a reaction
|
void |
setConstant(int i,
double value) |
calculatePartialDerivative, calculatePropensity, getConstantFromDeterministicRateConstant
public ArrayKineticConstantPropensityCalculator(int[][] reactants, double[] constants)
reactants
- array of adjacency arraysconstants
- array of kinetic constantspublic double getConstant(int i)
KineticConstantPropensityCalculator
i
- index of the reactionpublic void setConstant(int i, double value)
Copyright © 2007–2021. All rights reserved.