本文整理匯總了Java中org.apache.commons.math3.ode.nonstiff.HighamHall54Integrator類的典型用法代碼示例。如果您正苦於以下問題:Java HighamHall54Integrator類的具體用法?Java HighamHall54Integrator怎麽用?Java HighamHall54Integrator使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。
HighamHall54Integrator類屬於org.apache.commons.math3.ode.nonstiff包,在下文中一共展示了HighamHall54Integrator類的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: HierarchicalODERKSimulator
import org.apache.commons.math3.ode.nonstiff.HighamHall54Integrator; //導入依賴的package包/類
public HierarchicalODERKSimulator(String SBMLFileName, String rootDirectory,
String outputDirectory, int runs, double timeLimit, double maxTimeStep,
long randomSeed, double printInterval,
double stoichAmpValue, String[] interestingSpecies,
int numSteps, double relError, double absError, String quantityType,
double initialTime, double outputStartTime,
boolean print) throws IOException, XMLStreamException, BioSimException {
super(SBMLFileName, rootDirectory, outputDirectory, randomSeed, runs,
timeLimit, maxTimeStep, 0.0, printInterval, stoichAmpValue,
interestingSpecies, quantityType, initialTime,
outputStartTime, SimType.HODE);
this.relativeError = relError;
this.absoluteError = absError;
this.isSingleStep = false;
this.absoluteError = absoluteError == 0 ? 1e-12 : absoluteError;
this.relativeError = absoluteError == 0 ? 1e-9 : relativeError;
this.printTime.setValue(outputStartTime);
this.vectorWrapper = new VectorWrapper(initValues);
if (numSteps > 0) {
setPrintInterval(timeLimit / numSteps);
}
odecalc = new HighamHall54Integrator(getMinTimeStep(), getMaxTimeStep(),
absoluteError, relativeError);
isInitialized = false;
}
示例2: HighamHall54Solver
import org.apache.commons.math3.ode.nonstiff.HighamHall54Integrator; //導入依賴的package包/類
public HighamHall54Solver(final double minStep, final double maxStep, final double scalAbsoluteTolerance,
final double scalRelativeTolerance, final GamaMap<String, IList<Double>> integrated_val) {
super((minStep + maxStep) / 2,
new HighamHall54Integrator(minStep, maxStep, scalAbsoluteTolerance, scalRelativeTolerance),
integrated_val);
}