Home
last modified time | relevance | path

Searched refs:fraction (Results 1 – 25 of 118) sorted by relevance

12345

/external/apache-commons-math/src/main/java/org/apache/commons/math/fraction/
DFraction.java17 package org.apache.commons.math.fraction;
430 public Fraction add(Fraction fraction) { in add() argument
431 return addSub(fraction, true /* add */); in add()
453 public Fraction subtract(Fraction fraction) { in subtract() argument
454 return addSub(fraction, false /* subtract */); in subtract()
476 private Fraction addSub(Fraction fraction, boolean isAdd) { in addSub() argument
477 if (fraction == null) { in addSub()
482 return isAdd ? fraction : fraction.negate(); in addSub()
484 if (fraction.numerator == 0) { in addSub()
489 int d1 = MathUtils.gcd(denominator, fraction.denominator); in addSub()
[all …]
DBigFraction.java17 package org.apache.commons.math.fraction;
505 public BigFraction add(final BigFraction fraction) { in add() argument
506 if (fraction == null) { in add()
509 if (ZERO.equals(fraction)) { in add()
516 if (denominator.equals(fraction.denominator)) { in add()
517 num = numerator.add(fraction.numerator); in add()
520 … num = (numerator.multiply(fraction.denominator)).add((fraction.numerator).multiply(denominator)); in add()
521 den = denominator.multiply(fraction.denominator); in add()
662 public BigFraction divide(final BigFraction fraction) { in divide() argument
663 if (fraction == null) { in divide()
[all …]
DProperFractionFormat.java17 package org.apache.commons.math.fraction;
90 public StringBuffer format(Fraction fraction, StringBuffer toAppendTo, in format() argument
96 int num = fraction.getNumerator(); in format()
97 int den = fraction.getDenominator(); in format()
DProperBigFractionFormat.java17 package org.apache.commons.math.fraction;
89 public StringBuffer format(final BigFraction fraction, in format() argument
95 BigInteger num = fraction.getNumerator(); in format()
96 BigInteger den = fraction.getDenominator(); in format()
DFractionFormat.java18 package org.apache.commons.math.fraction;
144 public StringBuffer format(final Fraction fraction, in format() argument
150 getNumeratorFormat().format(fraction.getNumerator(), toAppendTo, pos); in format()
152 getDenominatorFormat().format(fraction.getDenominator(), toAppendTo, in format()
DFractionConversionException.java18 package org.apache.commons.math.fraction;
DBigFractionField.java18 package org.apache.commons.math.fraction;
/external/icu/icu4c/source/data/rbnf/
Dpl.txt56 "x.x: << przecinek >%%spellout-fraction>;",
62 "x.x: << przecinek >%%spellout-fraction>;",
84 "%%spellout-fraction:",
85 "10: <%%spellout-fraction-digits<<;",
86 "100: <%%spellout-fraction-digits<<;",
87 "1000: <%%spellout-fraction-digits<<;",
88 "10000: <%%spellout-fraction-digits<<;",
89 "100000: <%%spellout-fraction-digits<<;",
90 "1000000: <%%spellout-fraction-digits<<;",
91 "10000000: <%%spellout-fraction-digits<<;",
[all …]
/external/chromium-trace/catapult/third_party/polymer/components/web-animations-js/src/
Deffect.js21 return function(target, fraction) { argument
22 if (fraction != null) {
24 return (fraction <= 0 && interpolation.startTime == 0) ||
25 (fraction >= 1 && interpolation.endTime == 1) ||
26 (fraction >= interpolation.startTime && fraction <= interpolation.endTime);
28 var offsetFraction = fraction - interpolation.startTime;
/external/webrtc/webrtc/modules/audio_coding/neteq/
Dnormal.cc133 int fraction = increment; in Process() local
140 static_cast<int16_t>((fraction * (*output)[channel_ix][i] + in Process()
141 (32 - fraction) * expanded[channel_ix][i] + 8) >> 5); in Process()
142 fraction += increment; in Process()
169 int16_t fraction = increment; in Process() local
174 (fraction * signal[i] + (32 - fraction) * cng_output[i] + 8) >> 5; in Process()
175 fraction += increment; in Process()
/external/chromium-trace/catapult/third_party/polymer/components/web-animations-js/test/js/
Deffect-callback.js10 var player = document.body.animate(function(fraction) { fractions.push(fraction); }, 1000); argument
45 var player = document.body.animate(function(fraction) { fractions.push(fraction); }, 1000); argument
/external/webrtc/webrtc/modules/audio_processing/utility/
Ddelay_estimator.c172 float fraction = 1.f; in HistogramBasedValidation() local
196 fraction = 1.f - kFractionSlope * (delay_difference - self->allowed_offset); in HistogramBasedValidation()
197 fraction = (fraction > kMinFractionWhenPossiblyCausal ? fraction : in HistogramBasedValidation()
200 fraction = kMinFractionWhenPossiblyNonCausal - in HistogramBasedValidation()
202 fraction = (fraction > 1.f ? 1.f : fraction); in HistogramBasedValidation()
204 histogram_threshold *= fraction; in HistogramBasedValidation()
/external/tcpdump/
Dprint-ntp.c70 uint32_t fraction; member
75 uint16_t fraction; member
333 f = EXTRACT_16BITS(&sfp->fraction); in p_sfix()
351 uf = EXTRACT_32BITS(&lfp->fraction); in p_ntp_time()
390 uf = EXTRACT_32BITS(&lfp->fraction); in p_ntp_delta()
391 ouf = EXTRACT_32BITS(&olfp->fraction); in p_ntp_delta()
/external/androidplot/AndroidPlot-Core/src/main/java/com/androidplot/util/
DPixelUtils.java123 public static float fractionToPixH(float fraction) { in fractionToPixH() argument
124 return metrics.heightPixels * fraction; in fractionToPixH()
133 public static float fractionToPixW(float fraction) { in fractionToPixW() argument
134 return metrics.widthPixels * fraction; in fractionToPixW()
/external/webrtc/webrtc/modules/rtp_rtcp/source/rtcp_packet/
Drrtr.cc35 uint32_t fraction = ByteReader<uint32_t>::ReadBigEndian(&buffer[8]); in Parse() local
36 ntp_.Set(seconds, fraction); in Parse()
/external/webrtc/webrtc/modules/audio_coding/codecs/red/
Daudio_encoder_copy_red.cc115 void AudioEncoderCopyRed::SetProjectedPacketLossRate(double fraction) { in SetProjectedPacketLossRate() argument
116 speech_encoder_->SetProjectedPacketLossRate(fraction); in SetProjectedPacketLossRate()
/external/apache-commons-math/src/main/java/org/apache/commons/math/special/
DBeta.java129 ContinuedFraction fraction = new ContinuedFraction() { in regularizedBeta() local
154 1.0 / fraction.evaluate(x, epsilon, maxIterations); in regularizedBeta()
/external/webrtc/webrtc/modules/audio_coding/codecs/isac/main/source/
Dpitch_filter.c216 double fraction; in Update() local
222 fraction = parameters->lag_offset - (parameters->lag + PITCH_FILTDELAY); in Update()
223 fraction_index = WebRtcIsac_lrint(PITCH_FRACS * fraction - 0.5); in Update()
/external/skia/src/utils/
DSkInterpolator.cpp81 SkScalar fraction = SkScalarFraction(fRepeat); in timeToT() local
82 offsetTime = fraction == 0 && fRepeat > 0 ? totalTime : in timeToT()
83 (SkMSec) SkScalarFloorToInt(fraction * totalTime); in timeToT()
/external/chromium-trace/catapult/third_party/polymer/components/web-animations-js/test/blink/interpolation/resources/
Dinterpolation-test.js197 function makeInterpolationTest(fraction, testId, caseId, params, expectation) { argument
198 var t = async_test(describeTest(params) + ' at ' + fraction);
236 var easing = createEasing(fraction);
/external/toybox/lib/
Dxwrap.c683 long xparsetime(char *arg, long units, long *fraction) in xparsetime() argument
702 if (fraction) *fraction = units*(d-l); in xparsetime()
703 } else if (fraction) *fraction = 0; in xparsetime()
/external/autotest/server/
Dsite_log_time_diff.py49 date, sep, fraction = syslog_time.partition('.')
51 return float('%d.%s' % (int_time, re.split('[+-]', fraction)[0]))
/external/pdfium/xfa/src/fxfa/src/parser/
Dxfa_utils_imp.cpp344 FX_DOUBLE fraction = 0.0; in XFA_WideStringToDouble() local
348 fraction += fraction_scales[scale] * (str[cc] - '0'); in XFA_WideStringToDouble()
362 dwFractional = (FX_DWORD)(fraction * 4294967296.0); in XFA_WideStringToDouble()
/external/skia/src/animator/
DSkDrawColor.cpp73 SkScalar fraction = hue / 60 - SkIntToScalar(sextant); in HSV_to_RGB() local
75 SkScalar q = SkScalarMul(value, SK_Scalar1 - SkScalarMul(saturation, fraction)); in HSV_to_RGB()
77 SkScalarMul(saturation, SK_Scalar1 - fraction)); in HSV_to_RGB()
/external/sonivox/arm-wt-22k/lib_src/
Deas_chorus.c200 EAS_I16 fraction; in WeightedTap() local
208 fraction = (EAS_I16)((indexDesired>>1) & 0x07FFF); //just use 15 bits of fractional part in WeightedTap()
232 return(val1 + (EAS_I16)MULT_EG1_EG1(val2-val1,fraction)); in WeightedTap()

12345