/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 | 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 | 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 | 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 | EulerStepInterpolator.java | 67 public EulerStepInterpolator(final EulerStepInterpolator interpolator) { in EulerStepInterpolator() argument 68 super(interpolator); in EulerStepInterpolator()
|
/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/lottie/lottie/src/main/java/com/airbnb/lottie/parser/ |
D | KeyframeParser.java | 56 private static void putInterpolator(int hash, WeakReference<Interpolator> interpolator) { in putInterpolator() argument 60 pathInterpolatorCache.put(hash, interpolator); in putInterpolator() 86 Interpolator interpolator = null; in parseKeyframe() local 128 interpolator = LINEAR_INTERPOLATOR; in parseKeyframe() 137 interpolator = interpolatorRef.get(); in parseKeyframe() 139 if (interpolatorRef == null || interpolator == null) { in parseKeyframe() 145 interpolator = PathInterpolatorCompat.create(cp1.x, cp1.y, cp2.x, cp2.y); in parseKeyframe() 154 interpolator = PathInterpolatorCompat.create( in parseKeyframe() 158 interpolator = new LinearInterpolator(); in parseKeyframe() 162 putInterpolator(hash, new WeakReference<>(interpolator)); in parseKeyframe() [all …]
|
/external/lottie/lottie/src/main/java/com/airbnb/lottie/value/ |
D | LottieInterpolatedValue.java | 10 private final Interpolator interpolator; field in LottieInterpolatedValue 16 LottieInterpolatedValue(T startValue, T endValue, Interpolator interpolator) { in LottieInterpolatedValue() argument 19 this.interpolator = interpolator; in LottieInterpolatedValue() 23 float progress = interpolator.getInterpolation(frameInfo.getOverallProgress()); in getValue()
|
D | Keyframe.java | 17 @Nullable public final Interpolator interpolator; field in Keyframe 38 @Nullable Interpolator interpolator, float startFrame, @Nullable Float endFrame) { in Keyframe() argument 42 this.interpolator = interpolator; in Keyframe() 54 interpolator = null; in Keyframe() 87 return interpolator == null; in isStatic() 139 ", interpolator=" + interpolator + in toString()
|
D | LottieInterpolatedFloatValue.java | 14 public LottieInterpolatedFloatValue(Float startValue, Float endValue, Interpolator interpolator) { in LottieInterpolatedFloatValue() argument 15 super(startValue, endValue, interpolator); in LottieInterpolatedFloatValue()
|
D | LottieInterpolatedIntegerValue.java | 14 …c LottieInterpolatedIntegerValue(Integer startValue, Integer endValue, Interpolator interpolator) { in LottieInterpolatedIntegerValue() argument 15 super(startValue, endValue, interpolator); in LottieInterpolatedIntegerValue()
|
/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/lottie/LottieSample/src/main/kotlin/com/airbnb/lottie/samples/ |
D | AppIntroActivity.kt | 79 …val interpolator = androidx.viewpager.widget.ViewPager::class.java.getDeclaredField("sInterpolator… in <lambda>() constant 80 interpolator.isAccessible = true in <lambda>() 82 val scroller = object : Scroller(this, interpolator.get(null) as Interpolator) { in <lambda>()
|