/external/apache-commons-math/src/main/java/org/apache/commons/math/ode/sampling/ |
D | StepNormalizer.java | 115 public void handleStep(final StepInterpolator interpolator, final boolean isLast) in handleStep() argument 120 lastTime = interpolator.getPreviousTime(); in handleStep() 121 interpolator.setInterpolatedTime(lastTime); in handleStep() 122 lastState = interpolator.getInterpolatedState().clone(); in handleStep() 123 lastDerivatives = interpolator.getInterpolatedDerivatives().clone(); in handleStep() 126 forward = interpolator.getCurrentTime() >= lastTime; in handleStep() 134 boolean nextInStep = forward ^ (nextTime > interpolator.getCurrentTime()); in handleStep() 142 interpolator.setInterpolatedTime(lastTime); in handleStep() 143 System.arraycopy(interpolator.getInterpolatedState(), 0, in handleStep() 145 System.arraycopy(interpolator.getInterpolatedDerivatives(), 0, in handleStep() [all …]
|
D | AbstractStepInterpolator.java | 150 protected AbstractStepInterpolator(final AbstractStepInterpolator interpolator) { in AbstractStepInterpolator() argument 152 globalPreviousTime = interpolator.globalPreviousTime; in AbstractStepInterpolator() 153 globalCurrentTime = interpolator.globalCurrentTime; in AbstractStepInterpolator() 154 softPreviousTime = interpolator.softPreviousTime; in AbstractStepInterpolator() 155 softCurrentTime = interpolator.softCurrentTime; in AbstractStepInterpolator() 156 h = interpolator.h; in AbstractStepInterpolator() 157 interpolatedTime = interpolator.interpolatedTime; in AbstractStepInterpolator() 159 if (interpolator.currentState != null) { in AbstractStepInterpolator() 160 currentState = interpolator.currentState.clone(); in AbstractStepInterpolator() 161 interpolatedState = interpolator.interpolatedState.clone(); in AbstractStepInterpolator() [all …]
|
D | NordsieckStepInterpolator.java | 81 public NordsieckStepInterpolator(final NordsieckStepInterpolator interpolator) { in NordsieckStepInterpolator() argument 82 super(interpolator); in NordsieckStepInterpolator() 83 scalingH = interpolator.scalingH; in NordsieckStepInterpolator() 84 referenceTime = interpolator.referenceTime; in NordsieckStepInterpolator() 85 if (interpolator.scaled != null) { in NordsieckStepInterpolator() 86 scaled = interpolator.scaled.clone(); in NordsieckStepInterpolator() 88 if (interpolator.nordsieck != null) { in NordsieckStepInterpolator() 89 nordsieck = new Array2DRowRealMatrix(interpolator.nordsieck.getDataRef(), true); in NordsieckStepInterpolator() 91 if (interpolator.stateVariation != null) { in NordsieckStepInterpolator() 92 stateVariation = interpolator.stateVariation.clone(); in NordsieckStepInterpolator()
|
D | DummyStepInterpolator.java | 79 public DummyStepInterpolator(final DummyStepInterpolator interpolator) { in DummyStepInterpolator() argument 80 super(interpolator); in DummyStepInterpolator() 81 currentDerivative = interpolator.currentDerivative.clone(); in DummyStepInterpolator()
|
/external/apache-commons-math/src/main/java/org/apache/commons/math/ode/nonstiff/ |
D | AdamsBashforthIntegrator.java | 206 final NordsieckStepInterpolator interpolator = new NordsieckStepInterpolator(); in integrate() local 207 interpolator.reinitialize(y, forward); in integrate() 217 interpolator.reinitialize(stepStart, stepSize, scaled, nordsieck); in integrate() 218 interpolator.storeTime(stepStart); in integrate() 223 interpolator.rescale(hNew); in integrate() 250 interpolator.rescale(hNew); in integrate() 257 interpolator.shift(); in integrate() 258 interpolator.setInterpolatedTime(stepEnd); in integrate() 259 System.arraycopy(interpolator.getInterpolatedState(), 0, y, 0, y0.length); in integrate() 271 interpolator.reinitialize(stepEnd, stepSize, predictedScaled, nordsieckTmp); in integrate() [all …]
|
D | AdamsMoultonIntegrator.java | 226 final NordsieckStepInterpolator interpolator = new NordsieckStepInterpolator(); in integrate() local 227 interpolator.reinitialize(y, forward); in integrate() 237 interpolator.reinitialize(stepStart, stepSize, scaled, nordsieck); in integrate() 238 interpolator.storeTime(stepStart); in integrate() 241 interpolator.rescale(hNew); in integrate() 253 interpolator.setInterpolatedTime(stepEnd); in integrate() 254 System.arraycopy(interpolator.getInterpolatedState(), 0, yTmp, 0, y0.length); in integrate() 273 interpolator.rescale(hNew); in integrate() 290 interpolator.reinitialize(stepEnd, stepSize, correctedScaled, nordsieckTmp); in integrate() 291 interpolator.storeTime(stepStart); in integrate() [all …]
|
D | DormandPrince54StepInterpolator.java | 115 public DormandPrince54StepInterpolator(final DormandPrince54StepInterpolator interpolator) { in DormandPrince54StepInterpolator() argument 117 super(interpolator); in DormandPrince54StepInterpolator() 119 if (interpolator.v1 == null) { in DormandPrince54StepInterpolator() 129 v1 = interpolator.v1.clone(); in DormandPrince54StepInterpolator() 130 v2 = interpolator.v2.clone(); in DormandPrince54StepInterpolator() 131 v3 = interpolator.v3.clone(); in DormandPrince54StepInterpolator() 132 v4 = interpolator.v4.clone(); in DormandPrince54StepInterpolator() 133 vectorsInitialized = interpolator.vectorsInitialized; in DormandPrince54StepInterpolator()
|
D | RungeKuttaIntegrator.java | 118 AbstractStepInterpolator interpolator; in integrate() local 122 interpolator = rki; in integrate() 124 interpolator = new DummyStepInterpolator(yTmp, yDotK[stages - 1], forward); in integrate() 126 interpolator.storeTime(t0); in integrate() 140 interpolator.shift(); in integrate() 170 interpolator.storeTime(stepStart + stepSize); in integrate() 173 stepStart = acceptStep(interpolator, y, yDotTmp, t); in integrate() 178 interpolator.storeTime(stepStart); in integrate()
|
D | RungeKuttaStepInterpolator.java | 79 public RungeKuttaStepInterpolator(final RungeKuttaStepInterpolator interpolator) { in RungeKuttaStepInterpolator() argument 81 super(interpolator); in RungeKuttaStepInterpolator() 83 if (interpolator.currentState != null) { in RungeKuttaStepInterpolator() 86 yDotK = new double[interpolator.yDotK.length][]; in RungeKuttaStepInterpolator() 87 for (int k = 0; k < interpolator.yDotK.length; ++k) { in RungeKuttaStepInterpolator() 89 System.arraycopy(interpolator.yDotK[k], 0, in RungeKuttaStepInterpolator()
|
D | EmbeddedRungeKuttaIntegrator.java | 212 AbstractStepInterpolator interpolator; in integrate() local 216 interpolator = rki; in integrate() 218 interpolator = new DummyStepInterpolator(yTmp, yDotK[stages - 1], forward); in integrate() 220 interpolator.storeTime(t0); in integrate() 235 interpolator.shift(); in integrate() 301 interpolator.storeTime(stepStart + stepSize); in integrate() 304 stepStart = acceptStep(interpolator, y, yDotTmp, t); in integrate() 309 interpolator.storeTime(stepStart); in integrate()
|
D | GraggBulirschStoerStepInterpolator.java | 151 (final GraggBulirschStoerStepInterpolator interpolator) { in GraggBulirschStoerStepInterpolator() argument 153 super(interpolator); in GraggBulirschStoerStepInterpolator() 165 if (interpolator.polynoms == null) { in GraggBulirschStoerStepInterpolator() 169 resetTables(interpolator.currentDegree); in GraggBulirschStoerStepInterpolator() 172 System.arraycopy(interpolator.polynoms[i], 0, in GraggBulirschStoerStepInterpolator() 175 currentDegree = interpolator.currentDegree; in GraggBulirschStoerStepInterpolator()
|
D | DormandPrince853StepInterpolator.java | 242 public DormandPrince853StepInterpolator(final DormandPrince853StepInterpolator interpolator) { in DormandPrince853StepInterpolator() argument 244 super(interpolator); in DormandPrince853StepInterpolator() 246 if (interpolator.currentState == null) { in DormandPrince853StepInterpolator() 254 final int dimension = interpolator.currentState.length; in DormandPrince853StepInterpolator() 259 System.arraycopy(interpolator.yDotKLast[k], 0, yDotKLast[k], 0, in DormandPrince853StepInterpolator() 266 System.arraycopy(interpolator.v[k], 0, v[k], 0, dimension); in DormandPrince853StepInterpolator() 269 vectorsInitialized = interpolator.vectorsInitialized; in DormandPrince853StepInterpolator()
|
D | GraggBulirschStoerIntegrator.java | 615 AbstractStepInterpolator interpolator = null; in integrate() local 617 interpolator = new GraggBulirschStoerStepInterpolator(y, yDot0, in integrate() 621 interpolator = new DummyStepInterpolator(y, yDot1, forward); in integrate() 623 interpolator.storeTime(t0); in integrate() 645 interpolator.shift(); in integrate() 859 = (GraggBulirschStoerStepInterpolator) interpolator; in integrate() 880 interpolator.storeTime(stepStart + stepSize); in integrate() 881 stepStart = acceptStep(interpolator, y1, yDot1, t); in integrate() 884 interpolator.storeTime(stepStart); in integrate()
|
D | EulerStepInterpolator.java | 67 public EulerStepInterpolator(final EulerStepInterpolator interpolator) { in EulerStepInterpolator() argument 68 super(interpolator); in EulerStepInterpolator()
|
D | MidpointStepInterpolator.java | 69 public MidpointStepInterpolator(final MidpointStepInterpolator interpolator) { in MidpointStepInterpolator() argument 70 super(interpolator); in MidpointStepInterpolator()
|
D | ClassicalRungeKuttaStepInterpolator.java | 72 …ublic ClassicalRungeKuttaStepInterpolator(final ClassicalRungeKuttaStepInterpolator interpolator) { in ClassicalRungeKuttaStepInterpolator() argument 73 super(interpolator); in ClassicalRungeKuttaStepInterpolator()
|
D | ThreeEighthesStepInterpolator.java | 74 public ThreeEighthesStepInterpolator(final ThreeEighthesStepInterpolator interpolator) { in ThreeEighthesStepInterpolator() argument 75 super(interpolator); in ThreeEighthesStepInterpolator()
|
D | HighamHall54StepInterpolator.java | 59 public HighamHall54StepInterpolator(final HighamHall54StepInterpolator interpolator) { in HighamHall54StepInterpolator() argument 60 super(interpolator); in HighamHall54StepInterpolator()
|
/external/apache-commons-math/src/main/java/org/apache/commons/math/ode/events/ |
D | EventState.java | 147 public void reinitializeBegin(final StepInterpolator interpolator) in reinitializeBegin() argument 169 … final double ignoreZone = interpolator.isForward() ? getConvergence() : -getConvergence(); in reinitializeBegin() 170 t0 = interpolator.getPreviousTime() + ignoreZone; in reinitializeBegin() 171 interpolator.setInterpolatedTime(t0); in reinitializeBegin() 172 g0 = handler.g(t0, interpolator.getInterpolatedState()); in reinitializeBegin() 176 final double tStart = interpolator.getPreviousTime(); in reinitializeBegin() 177 interpolator.setInterpolatedTime(tStart); in reinitializeBegin() 178 g0Positive = handler.g(tStart, interpolator.getInterpolatedState()) <= 0; in reinitializeBegin() 198 public boolean evaluateStep(final StepInterpolator interpolator) in evaluateStep() argument 203 forward = interpolator.isForward(); in evaluateStep() [all …]
|
D | CombinedEventsManager.java | 123 public boolean evaluateStep(final StepInterpolator interpolator) in evaluateStep() argument 140 state.reinitializeBegin(interpolator); in evaluateStep() 150 if (state.evaluateStep(interpolator)) { in evaluateStep() 154 if (interpolator.isForward()) { in evaluateStep()
|
/external/apache-commons-math/src/main/java/org/apache/commons/math/ode/ |
D | AbstractIntegrator.java | 236 protected double acceptStep(final AbstractStepInterpolator interpolator, in acceptStep() argument 241 double previousT = interpolator.getGlobalPreviousTime(); in acceptStep() 242 final double currentT = interpolator.getGlobalCurrentTime(); in acceptStep() 248 state.reinitializeBegin(interpolator); in acceptStep() 254 final int orderingSign = interpolator.isForward() ? +1 : -1; in acceptStep() 265 if (state.evaluateStep(interpolator)) { in acceptStep() 280 interpolator.setSoftPreviousTime(previousT); in acceptStep() 281 interpolator.setSoftCurrentTime(eventT); in acceptStep() 284 interpolator.setInterpolatedTime(eventT); in acceptStep() 285 final double[] eventY = interpolator.getInterpolatedState(); in acceptStep() [all …]
|
D | MultistepIntegrator.java | 324 public void handleStep(StepInterpolator interpolator, boolean isLast) in handleStep() argument 327 final double prev = interpolator.getPreviousTime(); in handleStep() 328 final double curr = interpolator.getCurrentTime(); in handleStep() 333 interpolator.setInterpolatedTime(prev); in handleStep() 334 scaled = interpolator.getInterpolatedDerivatives().clone(); in handleStep() 342 interpolator.setInterpolatedTime(prev + stepSize * i); in handleStep() 343 final double[] msI = interpolator.getInterpolatedDerivatives().clone(); in handleStep()
|
D | ContinuousOutputModel.java | 161 for (StepInterpolator interpolator : model.steps) { in append() 162 steps.add(interpolator.copy()); in append() 200 public void handleStep(final StepInterpolator interpolator, final boolean isLast) in handleStep() argument 204 initialTime = interpolator.getPreviousTime(); in handleStep() 205 forward = interpolator.isForward(); in handleStep() 208 steps.add(interpolator.copy()); in handleStep() 211 finalTime = interpolator.getCurrentTime(); in handleStep()
|
/external/apache-commons-math/src/main/java/org/apache/commons/math/ode/jacobians/ |
D | FirstOrderIntegratorWithJacobians.java | 572 public void handleStep(StepInterpolator interpolator, boolean isLast) in handleStep() argument 574 handler.handleStep(new StepInterpolatorWrapper(interpolator, n, k), isLast); in handleStep() 594 private StepInterpolator interpolator; field in FirstOrderIntegratorWithJacobians.StepInterpolatorWrapper 626 public StepInterpolatorWrapper(final StepInterpolator interpolator, in StepInterpolatorWrapper() argument 628 this.interpolator = interpolator; in StepInterpolatorWrapper() 639 interpolator.setInterpolatedTime(time); in setInterpolatedTime() 644 return interpolator.isForward(); in isForward() 649 return interpolator.getPreviousTime(); in getPreviousTime() 654 return interpolator.getInterpolatedTime(); in getInterpolatedTime() 659 double[] extendedState = interpolator.getInterpolatedState(); in getInterpolatedY() [all …]
|
/external/tensorflow/tensorflow/contrib/image/python/kernel_tests/ |
D | interpolate_spline_test.py | 166 interpolator = interpolate_spline.interpolate_spline( 169 fetches = [query_points, train_points, train_values, interpolator] 203 interpolator = interpolate_spline.interpolate_spline( 209 interp_val = sess.run(interpolator) 221 interpolator = interpolate_spline.interpolate_spline( 227 interp_val = sess.run(interpolator) 251 interpolator = interpolate_spline.interpolate_spline( 262 interpolator, 321 interpolator = interpolate_spline.interpolate_spline( 325 loss = math_ops.reduce_mean(math_ops.square(query_values - interpolator))
|