Home
last modified time | relevance | path

Searched refs:interpolator (Results 1 – 25 of 36) sorted by relevance

12

/external/apache-commons-math/src/main/java/org/apache/commons/math/ode/sampling/
DStepNormalizer.java115 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 …]
DAbstractStepInterpolator.java150 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 …]
DNordsieckStepInterpolator.java81 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()
DDummyStepInterpolator.java79 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/
DAdamsBashforthIntegrator.java206 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 …]
DAdamsMoultonIntegrator.java226 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 …]
DDormandPrince54StepInterpolator.java115 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()
DRungeKuttaIntegrator.java118 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()
DRungeKuttaStepInterpolator.java79 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()
DEmbeddedRungeKuttaIntegrator.java212 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()
DGraggBulirschStoerStepInterpolator.java151 (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()
DDormandPrince853StepInterpolator.java242 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()
DGraggBulirschStoerIntegrator.java615 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()
DEulerStepInterpolator.java67 public EulerStepInterpolator(final EulerStepInterpolator interpolator) { in EulerStepInterpolator() argument
68 super(interpolator); in EulerStepInterpolator()
DMidpointStepInterpolator.java69 public MidpointStepInterpolator(final MidpointStepInterpolator interpolator) { in MidpointStepInterpolator() argument
70 super(interpolator); in MidpointStepInterpolator()
DClassicalRungeKuttaStepInterpolator.java72 …ublic ClassicalRungeKuttaStepInterpolator(final ClassicalRungeKuttaStepInterpolator interpolator) { in ClassicalRungeKuttaStepInterpolator() argument
73 super(interpolator); in ClassicalRungeKuttaStepInterpolator()
DThreeEighthesStepInterpolator.java74 public ThreeEighthesStepInterpolator(final ThreeEighthesStepInterpolator interpolator) { in ThreeEighthesStepInterpolator() argument
75 super(interpolator); in ThreeEighthesStepInterpolator()
DHighamHall54StepInterpolator.java59 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/
DEventState.java147 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 …]
DCombinedEventsManager.java123 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/
DAbstractIntegrator.java236 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 …]
DMultistepIntegrator.java324 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()
DContinuousOutputModel.java161 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/
DFirstOrderIntegratorWithJacobians.java572 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/
Dinterpolate_spline_test.py166 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))

12