當前位置: 首頁>>代碼示例>>Java>>正文


Java HighamHall54Integrator類代碼示例

本文整理匯總了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;
}
 
開發者ID:MyersResearchGroup,項目名稱:iBioSim,代碼行數:26,代碼來源:HierarchicalODERKSimulator.java

示例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);
}
 
開發者ID:gama-platform,項目名稱:gama,代碼行數:7,代碼來源:HighamHall54Solver.java


注:本文中的org.apache.commons.math3.ode.nonstiff.HighamHall54Integrator類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。