Home
last modified time | relevance | path

Searched refs:stepSize (Results 1 – 25 of 60) sorted by relevance

123

/external/jmonkeyengine/engine/src/terrain/com/jme3/terrain/heightmap/
DMidpointDisplacementHeightMap.java132 int stepSize = size - 1; in load() local
133 while (stepSize > 1) { in load()
136 nextCoords = doSquareStep(tempBuffer, nextCoords, stepSize, offsetRange, random); in load()
140 nextCoords = doDiamondStep(tempBuffer, nextCoords, stepSize, offsetRange, random); in load()
142 stepSize /= 2; in load()
169 …protected int[] doSquareStep(float[][] tempBuffer, int[] coords, int stepSize, float offsetRange, … in doSquareStep() argument
174 cornerAverage += tempBuffer[x + stepSize][y]; in doSquareStep()
175 cornerAverage += tempBuffer[x + stepSize][y + stepSize]; in doSquareStep()
176 cornerAverage += tempBuffer[x][y + stepSize]; in doSquareStep()
179 tempBuffer[x + stepSize / 2][y + stepSize / 2] = cornerAverage + offset; in doSquareStep()
[all …]
/external/apache-commons-math/src/main/java/org/apache/commons/math/ode/nonstiff/
DAdamsMoultonIntegrator.java237 interpolator.reinitialize(stepStart, stepSize, scaled, nordsieck); in integrate()
240 double hNew = stepSize; in integrate()
249 stepSize = hNew; in integrate()
252 final double stepEnd = stepStart + stepSize; in integrate()
261 predictedScaled[j] = stepSize * yDot[j]; in integrate()
272 hNew = filterStep(stepSize * factor, forward, false); in integrate()
278 final double stepEnd = stepStart + stepSize; in integrate()
284 correctedScaled[j] = stepSize * yDot[j]; in integrate()
290 interpolator.reinitialize(stepEnd, stepSize, correctedScaled, nordsieckTmp); in integrate()
307 interpolator.reinitialize(stepStart, stepSize, scaled, nordsieck); in integrate()
[all …]
DAdamsBashforthIntegrator.java217 interpolator.reinitialize(stepStart, stepSize, scaled, nordsieck); in integrate()
222 double hNew = stepSize; in integrate()
232 stepSize = hNew; in integrate()
249 hNew = filterStep(stepSize * factor, forward, false); in integrate()
256 final double stepEnd = stepStart + stepSize; in integrate()
267 predictedScaled[j] = stepSize * yDot[j]; in integrate()
271 interpolator.reinitialize(stepEnd, stepSize, predictedScaled, nordsieckTmp); in integrate()
278 interpolator.reinitialize(stepEnd, stepSize, scaled, nordsieck); in integrate()
289 interpolator.reinitialize(stepStart, stepSize, scaled, nordsieck); in integrate()
294 final double scaledH = stepSize * factor; in integrate()
DRungeKuttaIntegrator.java130 stepSize = forward ? step : -step; in integrate()
153 yTmp[j] = y[j] + stepSize * sum; in integrate()
156 computeDerivatives(stepStart + c[k-1] * stepSize, yTmp, yDotK[k]); in integrate()
166 yTmp[j] = y[j] + stepSize * sum; in integrate()
170 interpolator.storeTime(stepStart + stepSize); in integrate()
181 final double nextT = stepStart + stepSize; in integrate()
184 stepSize = t - stepStart; in integrate()
192 stepSize = Double.NaN; in integrate()
DEmbeddedRungeKuttaIntegrator.java262 stepSize = hNew; in integrate()
272 yTmp[j] = y[j] + stepSize * sum; in integrate()
275 computeDerivatives(stepStart + c[k-1] * stepSize, yTmp, yDotK[k]); in integrate()
285 yTmp[j] = y[j] + stepSize * sum; in integrate()
289 error = estimateError(yDotK, y, yTmp, stepSize); in integrate()
295 hNew = filterStep(stepSize * factor, forward, false); in integrate()
301 interpolator.storeTime(stepStart + stepSize); in integrate()
319 final double scaledH = stepSize * factor; in integrate()
DGraggBulirschStoerIntegrator.java662 stepSize = hNew; in integrate()
665 if ((forward && (stepStart + stepSize > t)) || in integrate()
666 ((! forward) && (stepStart + stepSize < t))) { in integrate()
667 stepSize = t - stepStart; in integrate()
669 final double nextT = stepStart + stepSize; in integrate()
679 if ( ! tryStep(stepStart, y, stepSize, k, scale, fk[k], in integrate()
685 hNew = FastMath.abs(filterStep(stepSize * stabilityReduction, forward, false)); in integrate()
709 hNew = FastMath.abs(filterStep(stepSize * stabilityReduction, forward, false)); in integrate()
721 optimalStep[k] = FastMath.abs(filterStep(stepSize * fac, forward, true)); in integrate()
809 computeDerivatives(stepStart + stepSize, y1, yDot1); in integrate()
[all …]
/external/libgdx/gdx/src/com/badlogic/gdx/scenes/scene2d/ui/
DProgressBar.java46 private float min, max, stepSize; field in ProgressBar
58 public ProgressBar (float min, float max, float stepSize, boolean vertical, Skin skin) { in ProgressBar() argument
59 …this(min, max, stepSize, vertical, skin.get("default-" + (vertical ? "vertical" : "horizontal"), P… in ProgressBar()
62 …public ProgressBar (float min, float max, float stepSize, boolean vertical, Skin skin, String styl… in ProgressBar() argument
63 this(min, max, stepSize, vertical, skin.get(styleName, ProgressBarStyle.class)); in ProgressBar()
76 …public ProgressBar (float min, float max, float stepSize, boolean vertical, ProgressBarStyle style… in ProgressBar() argument
78 if (stepSize <= 0) throw new IllegalArgumentException("stepSize must be > 0: " + stepSize); in ProgressBar()
82 this.stepSize = stepSize; in ProgressBar()
234 value = clamp(Math.round(value / stepSize) * stepSize); in setValue()
269 public void setStepSize (float stepSize) { in setStepSize() argument
[all …]
DSlider.java43 public Slider (float min, float max, float stepSize, boolean vertical, Skin skin) { in Slider() argument
44 …this(min, max, stepSize, vertical, skin.get("default-" + (vertical ? "vertical" : "horizontal"), S… in Slider()
47 …public Slider (float min, float max, float stepSize, boolean vertical, Skin skin, String styleName… in Slider() argument
48 this(min, max, stepSize, vertical, skin.get(styleName, SliderStyle.class)); in Slider()
59 public Slider (float min, float max, float stepSize, boolean vertical, SliderStyle style) { in Slider() argument
60 super(min, max, stepSize, vertical, style); in Slider()
/external/chromium-trace/catapult/netlog_viewer/netlog_viewer/
Dtimeline_data_series.js80 getValues: function(startTime, stepSize, count) { argument
83 this.cacheStepSize_ == stepSize &&
89 this.cacheValues_ = this.getValuesInternal_(startTime, stepSize, count);
91 this.cacheStepSize_ = stepSize;
105 getValuesInternal_: function(startTime, stepSize, count) { argument
117 time += stepSize;
269 getValuesInternal_: function(startTime, stepSize, count) { argument
273 this.dataPoints_[nextPoint].time < startTime - stepSize) {
290 values[i] = 1000 * transferred / stepSize;
291 time += stepSize;
Dtimeline_graph_view.js599 var stepSize = Math.pow(10, -maxDecimalDigits);
614 if (Math.ceil(maxValue / stepSize) + 1 <= maxLabels)
617 if (Math.ceil(maxValue / (stepSize * 2)) + 1 <= maxLabels) {
618 stepSize *= 2;
622 if (Math.ceil(maxValue / (stepSize * 5)) + 1 <= maxLabels) {
623 stepSize *= 5;
626 stepSize *= 10;
632 this.max_ = Math.ceil(maxValue / stepSize) * stepSize;
635 for (var label = this.max_; label >= 0; label -= stepSize)
/external/robolectric/v1/src/main/java/com/xtremelabs/robolectric/shadows/
DShadowRatingBar.java24 final float stepSize = attributeSet.getAttributeFloatValue("android", "stepSize", -1); in applyAttributes() local
30 if (stepSize >= 0) { in applyAttributes()
31 setStepSize(stepSize); in applyAttributes()
77 public void setStepSize(float stepSize) { in setStepSize() argument
78 if (stepSize <= 0) { in setStepSize()
82 final float newMax = mNumStars / stepSize; in setStepSize()
/external/okhttp/okio/okio/src/main/java/okio/
DSegmentedByteString.java191 int stepSize = Math.min(byteCount, segmentOffset + segmentSize - offset); in rangeEquals() local
194 if (!other.rangeEquals(otherOffset, segments[s], arrayOffset, stepSize)) return false; in rangeEquals()
195 offset += stepSize; in rangeEquals()
196 otherOffset += stepSize; in rangeEquals()
197 byteCount -= stepSize; in rangeEquals()
208 int stepSize = Math.min(byteCount, segmentOffset + segmentSize - offset); in rangeEquals() local
211 if (!arrayRangeEquals(segments[s], arrayOffset, other, otherOffset, stepSize)) return false; in rangeEquals()
212 offset += stepSize; in rangeEquals()
213 otherOffset += stepSize; in rangeEquals()
214 byteCount -= stepSize; in rangeEquals()
/external/libgdx/extensions/gdx-tools/src/com/badlogic/gdx/tools/particleeditor/
DNewSlider.java38 float value, min, max, stepSize, sliderMin, sliderMax; field in NewSlider
44 …public NewSlider (float initialValue, final float min, final float max, float stepSize, final floa… in NewSlider() argument
48 this.stepSize = stepSize; in NewSlider()
109 this.value = (int)(Math.max(min, Math.min(max, value)) / stepSize) * stepSize; in setValue()
DSlider.java42 …public Slider (float initialValue, final float min, final float max, float stepSize, final float s… in Slider() argument
44 spinner = new JSpinner(new SpinnerNumberModel(initialValue, min, max, stepSize)); in Slider()
/external/sonivox/arm-wt-22k/lib_src/
Deas_imaadpcm.c228 EAS_INT stepSize; in IMADecoderADPCM() local
231 stepSize = imaStepSizeTable[pState->step]; in IMADecoderADPCM()
236 delta += stepSize; in IMADecoderADPCM()
240 delta += stepSize >> 1; in IMADecoderADPCM()
244 delta += stepSize >> 2; in IMADecoderADPCM()
247 delta += stepSize >> 3; in IMADecoderADPCM()
/external/apache-commons-math/src/main/java/org/apache/commons/math/ode/sampling/
DNordsieckStepInterpolator.java125 public void reinitialize(final double time, final double stepSize, in reinitialize() argument
129 this.scalingH = stepSize; in reinitialize()
143 public void rescale(final double stepSize) { in rescale() argument
145 final double ratio = stepSize / scalingH; in rescale()
160 scalingH = stepSize; in rescale()
/external/apache-commons-math/src/main/java/org/apache/commons/math/ode/
DMultistepIntegrator.java330 stepSize = (curr - prev) / (nSteps + 1); in handleStep()
336 scaled[j] *= stepSize; in handleStep()
342 interpolator.setInterpolatedTime(prev + stepSize * i); in handleStep()
345 msI[j] *= stepSize; in handleStep()
/external/libgdx/extensions/gdx-tools/src/com/badlogic/gdx/tools/flame/
DSlider.java31 public Slider (float initialValue, final float min, final float max, float stepSize) { in Slider() argument
32 spinner = new JSpinner(new SpinnerNumberModel(initialValue, min, max, stepSize)); in Slider()
/external/webrtc/webrtc/modules/audio_device/linux/
Daudio_mixer_manager_alsa_linux.h33 int32_t SpeakerVolumeStepSize(uint16_t& stepSize) const;
49 int32_t MicrophoneVolumeStepSize(uint16_t& stepSize) const;
Daudio_mixer_manager_pulse_linux.cc373 AudioMixerManagerLinuxPulse::SpeakerVolumeStepSize(uint16_t& stepSize) const in SpeakerVolumeStepSize()
385 stepSize = 1; in SpeakerVolumeStepSize()
389 "size=%i", stepSize); in SpeakerVolumeStepSize()
932 uint16_t& stepSize) const in MicrophoneVolumeStepSize()
965 stepSize = static_cast<uint16_t> ((PA_VOLUME_NORM + 1) / _paVolSteps); in MicrophoneVolumeStepSize()
969 " => size=%i", stepSize); in MicrophoneVolumeStepSize()
Daudio_mixer_manager_pulse_linux.h41 int32_t SpeakerVolumeStepSize(uint16_t& stepSize) const;
59 int32_t MicrophoneVolumeStepSize(uint16_t& stepSize) const;
/external/webrtc/webrtc/modules/audio_device/mac/
Daudio_mixer_manager_mac.h30 int32_t SpeakerVolumeStepSize(uint16_t& stepSize) const;
48 int32_t MicrophoneVolumeStepSize(uint16_t& stepSize) const;
/external/webrtc/webrtc/modules/audio_device/test/
Daudio_device_test_api.cc883 uint16_t stepSize(0); in TEST_F() local
893 EXPECT_EQ(-1, audio_device_->SpeakerVolumeStepSize(&stepSize)); in TEST_F()
917 EXPECT_EQ(0, audio_device_->SpeakerVolumeStepSize(&stepSize)); in TEST_F()
918 for (vol = minVolume; vol < (int)maxVolume; vol += 20*stepSize) { in TEST_F()
933 EXPECT_EQ(0, audio_device_->SpeakerVolumeStepSize(&stepSize)); in TEST_F()
935 step = (step < stepSize ? stepSize : step); in TEST_F()
952 EXPECT_EQ(0, audio_device_->SpeakerVolumeStepSize(&stepSize)); in TEST_F()
954 step = (step < stepSize ? stepSize : step); in TEST_F()
1033 uint16_t stepSize(0); in TEST_F() local
1043 EXPECT_EQ(-1, audio_device_->MicrophoneVolumeStepSize(&stepSize)); in TEST_F()
[all …]
/external/webrtc/webrtc/modules/audio_device/dummy/
Daudio_device_dummy.cc118 int32_t AudioDeviceDummy::SpeakerVolumeStepSize(uint16_t& stepSize) const { in SpeakerVolumeStepSize()
140 int32_t AudioDeviceDummy::MicrophoneVolumeStepSize(uint16_t& stepSize) const { in MicrophoneVolumeStepSize()
Daudio_device_dummy.h89 int32_t SpeakerVolumeStepSize(uint16_t& stepSize) const override;
97 int32_t MicrophoneVolumeStepSize(uint16_t& stepSize) const override;

123