• 如果您觉得本站非常有看点,那么赶紧使用Ctrl+D 收藏吧

Java AbstractIntegrator类的典型用法和代码示例

java 1次浏览

本文整理汇总了Java中org.apache.commons.math3.ode.AbstractIntegrator的典型用法代码示例。如果您正苦于以下问题:Java AbstractIntegrator类的具体用法?Java AbstractIntegrator怎么用?Java AbstractIntegrator使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。

AbstractIntegrator类属于org.apache.commons.math3.ode包,在下文中一共展示了AbstractIntegrator类的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。

示例1: reinitialize

点赞 3

import org.apache.commons.math3.ode.AbstractIntegrator; //导入依赖的package包/类
/** {@inheritDoc} */
@Override
public void reinitialize(final AbstractIntegrator integrator,
                         final double[] y, final double[][] yDotK, final boolean forward,
                         final EquationsMapper primaryMapper,
                         final EquationsMapper[] secondaryMappers) {

  super.reinitialize(integrator, y, yDotK, forward, primaryMapper, secondaryMappers);

  final int dimension = currentState.length;

  yDotKLast = new double[3][];
  for (int k = 0; k < yDotKLast.length; ++k) {
    yDotKLast[k] = new double[dimension];
  }

  v = new double[7][];
  for (int k = 0; k < v.length; ++k) {
    v[k]  = new double[dimension];
  }

  vectorsInitialized = false;

}
 

开发者ID:biocompibens,
项目名称:SME,
代码行数:25,
代码来源:DormandPrince853StepInterpolator.java

示例2: reinitialize

点赞 2

import org.apache.commons.math3.ode.AbstractIntegrator; //导入依赖的package包/类
/** {@inheritDoc} */
@Override
public void reinitialize(final AbstractIntegrator integrator,
                         final double[] y, final double[][] yDotK, final boolean forward,
                         final EquationsMapper primaryMapper,
                         final EquationsMapper[] secondaryMappers) {
  super.reinitialize(integrator, y, yDotK, forward, primaryMapper, secondaryMappers);
  v1 = null;
  v2 = null;
  v3 = null;
  v4 = null;
  vectorsInitialized = false;
}
 

开发者ID:biocompibens,
项目名称:SME,
代码行数:14,
代码来源:DormandPrince54StepInterpolator.java

示例3: reinitialize

点赞 1

import org.apache.commons.math3.ode.AbstractIntegrator; //导入依赖的package包/类
/** Reinitialize the instance
 * <p>Some Runge-Kutta integrators need fewer functions evaluations
 * than their counterpart step interpolators. So the interpolator
 * should perform the last evaluations they need by themselves. The
 * {@link RungeKuttaIntegrator RungeKuttaIntegrator} and {@link
 * EmbeddedRungeKuttaIntegrator EmbeddedRungeKuttaIntegrator}
 * abstract classes call this method in order to let the step
 * interpolator perform the evaluations it needs. These evaluations
 * will be performed during the call to <code>doFinalize</code> if
 * any, i.e. only if the step handler either calls the {@link
 * AbstractStepInterpolator#finalizeStep finalizeStep} method or the
 * {@link AbstractStepInterpolator#getInterpolatedState
 * getInterpolatedState} method (for an interpolator which needs a
 * finalization) or if it clones the step interpolator.</p>
 * @param rkIntegrator integrator being used
 * @param y reference to the integrator array holding the state at
 * the end of the step
 * @param yDotArray reference to the integrator array holding all the
 * intermediate slopes
 * @param forward integration direction indicator
 * @param primaryMapper equations mapper for the primary equations set
 * @param secondaryMappers equations mappers for the secondary equations sets
 */
public void reinitialize(final AbstractIntegrator rkIntegrator,
                         final double[] y, final double[][] yDotArray, final boolean forward,
                         final EquationsMapper primaryMapper,
                         final EquationsMapper[] secondaryMappers) {
  reinitialize(y, forward, primaryMapper, secondaryMappers);
  this.previousState = null;
  this.yDotK = yDotArray;
  this.integrator = rkIntegrator;
}
 

开发者ID:biocompibens,
项目名称:SME,
代码行数:33,
代码来源:RungeKuttaStepInterpolator.java


版权声明:本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系管理员进行删除。
喜欢 (0)