Searched defs:fraction (Results 1 - 25 of 58) sorted by relevance

123

/external/webrtc/webrtc/modules/rtp_rtcp/source/rtcp_packet/
H A Drrtr.cc35 uint32_t fraction = ByteReader<uint32_t>::ReadBigEndian(&buffer[8]); local
36 ntp_.Set(seconds, fraction);
/external/apache-commons-math/src/main/java/org/apache/commons/math/fraction/
H A DProperBigFractionFormat.java17 package org.apache.commons.math.fraction;
82 * @param fraction the object to format.
89 public StringBuffer format(final BigFraction fraction, argument
95 BigInteger num = fraction.getNumerator();
96 BigInteger den = fraction.getDenominator();
H A DProperFractionFormat.java17 package org.apache.commons.math.fraction;
80 * Formats a {@link Fraction} object to produce a string. The fraction
83 * @param fraction the object to format.
90 public StringBuffer format(Fraction fraction, StringBuffer toAppendTo, argument
96 int num = fraction.getNumerator();
97 int den = fraction.getDenominator();
124 * expects the string to be formatted as a proper fraction.
136 // try to parse improper fraction
182 // return num as a fraction
H A DFractionFormat.java18 package org.apache.commons.math.fraction;
84 * @return A formatted fraction in proper form.
127 * customizing is the maximum number of fraction digits, which is set to 0.
135 * Formats a {@link Fraction} object to produce a string. The fraction is
138 * @param fraction the object to format.
144 public StringBuffer format(final Fraction fraction, argument
150 getNumeratorFormat().format(fraction.getNumerator(), toAppendTo, pos);
152 getDenominatorFormat().format(fraction.getDenominator(), toAppendTo,
216 * expects the string to be formatted as an improper fraction.
244 // return num as a fraction
[all...]
H A DBigFractionField.java18 package org.apache.commons.math.fraction;
H A DFractionConversionException.java18 package org.apache.commons.math.fraction;
24 * Error thrown when a double value cannot be converted to a fraction
H A DFractionField.java18 package org.apache.commons.math.fraction;
H A DAbstractFormat.java18 package org.apache.commons.math.fraction;
178 * Formats a double value as a fraction and appends the result to a StringBuffer.
195 * Formats a long value as a fraction and appends the result to a StringBuffer.
H A DBigFractionFormat.java18 package org.apache.commons.math.fraction;
H A DFraction.java17 package org.apache.commons.math.fraction;
41 /** A fraction representing "2 / 1". */
44 /** A fraction representing "1". */
47 /** A fraction representing "0". */
50 /** A fraction representing "4/5". */
53 /** A fraction representing "1/5". */
56 /** A fraction representing "1/2". */
59 /** A fraction representing "1/4". */
62 /** A fraction representing "1/3". */
65 /** A fraction representin
430 add(Fraction fraction) argument
453 subtract(Fraction fraction) argument
476 addSub(Fraction fraction, boolean isAdd) argument
533 multiply(Fraction fraction) argument
568 divide(Fraction fraction) argument
[all...]
H A DBigFraction.java17 package org.apache.commons.math.fraction;
40 /** A fraction representing "2 / 1". */
43 /** A fraction representing "1". */
46 /** A fraction representing "0". */
49 /** A fraction representing "-1 / 1". */
52 /** A fraction representing "4/5". */
55 /** A fraction representing "1/5". */
58 /** A fraction representing "1/2". */
61 /** A fraction representing "1/4". */
64 /** A fraction representin
505 add(final BigFraction fraction) argument
662 divide(final BigFraction fraction) argument
893 multiply(final BigFraction fraction) argument
1081 subtract(final BigFraction fraction) argument
[all...]
/external/skia/gm/
H A Dstringart.cpp68 SkScalar fraction = 1.0f - timer.scaled(2.0f/kDesiredDurationSecs, 2.0f); variable
69 if (fraction <= 0.0f) {
70 fraction = -fraction;
73 SkASSERT(fraction >= 0.0f && fraction <= 1.0f);
75 fNumSteps = (int) (fraction * kMaxNumSteps);
/external/webrtc/webrtc/modules/audio_coding/codecs/
H A Daudio_encoder.cc54 void AudioEncoder::SetProjectedPacketLossRate(double fraction) {} argument
/external/protobuf/src/google/protobuf/stubs/
H A Dmathutil.h125 // fraction of their magnitude or within a certain absolute margin of error.
127 // WithinFraction(x, y, fraction) || WithinMargin(x, y, margin)
132 const T fraction, const T margin);
137 const T fraction, const T margin) {
138 // Not just "0 <= fraction" to fool the compiler for unsigned types.
139 GOOGLE_DCHECK((T(0) < fraction || T(0) == fraction) &&
140 fraction < T(1) &&
150 // IsFinite checks are to make kPosInf and kNegInf not within fraction
154 T relative_margin = static_cast<T>(fraction * Ma
136 WithinFractionOrMargin(const T x, const T y, const T fraction, const T margin) argument
[all...]
/external/androidplot/AndroidPlot-Core/src/main/java/com/androidplot/util/
H A DPixelUtils.java120 * @param fraction A float value between 0 and 1.
121 * @return Number of pixels fraction represents on the current device's display.
123 public static float fractionToPixH(float fraction) { argument
124 return metrics.heightPixels * fraction;
130 * @param fraction A float value between 0 and 1.
131 * @return Number of pixels fraction represents on the current device's display.
133 public static float fractionToPixW(float fraction) { argument
134 return metrics.widthPixels * fraction;
/external/protobuf/src/google/protobuf/util/
H A Dfield_comparator.cc133 void DefaultFieldComparator::SetDefaultFractionAndMargin(double fraction, argument
135 default_tolerance_ = Tolerance(fraction, margin);
140 double fraction,
146 map_tolerance_[field] = Tolerance(fraction, margin);
169 // Covers +inf and -inf (which are not within margin or fraction of
191 // Use user-provided fraction and margin. Since they are stored as
195 value_1, value_2, static_cast<T>(tolerance->fraction),
139 SetFractionAndMargin(const FieldDescriptor* field, double fraction, double margin) argument
H A Dfield_comparator.h139 // Sets the fraction and margin for the float comparison of a given field.
145 void SetFractionAndMargin(const FieldDescriptor* field, double fraction,
148 // Sets the fraction and margin for the float comparison of all float and
154 void SetDefaultFractionAndMargin(double fraction, double margin);
157 // Defines the tolerance for floating point comparison (fraction and margin).
159 double fraction; member in struct:google::protobuf::util::DefaultFieldComparator::Tolerance
162 : fraction(0.0),
165 : fraction(f),
/external/webrtc/webrtc/modules/audio_coding/codecs/red/
H A Daudio_encoder_copy_red.cc115 void AudioEncoderCopyRed::SetProjectedPacketLossRate(double fraction) { argument
116 speech_encoder_->SetProjectedPacketLossRate(fraction);
/external/deqp/framework/common/
H A DtcuFloatFormat.cpp241 const deUint64 fraction = bits & ((deUint64(1) << m_fractionBits) - 1); local
244 const deUint64 aligned = fraction << (numDigits * 4 - m_fractionBits);
/external/ltp/testcases/realtime/lib/
H A Dlibstats.c252 int fraction = 0; local
255 fraction += 9 * exp10(i - 1);
256 printf("99.%d%% < %ld\n", fraction, quantiles->quantiles[i]);
/external/pdfium/xfa/fxfa/parser/
H A Dxfa_utils.cpp70 FX_DOUBLE fraction = 0.0; local
74 fraction += fraction_scales[scale] * (str[cc] - '0');
88 dwFractional = (uint32_t)(fraction * 4294967296.0);
/external/skia/src/utils/
H A DSkInterpolator.cpp82 SkScalar fraction = SkScalarFraction(fRepeat); local
83 offsetTime = fraction == 0 && fRepeat > 0 ? totalTime :
84 (SkMSec) SkScalarFloorToInt(fraction * totalTime);
/external/sonivox/arm-wt-22k/lib_src/
H A Deas_chorus.c127 //convert depth from steps of .05 ms, to samples, with 16 bit whole part, discard fraction
151 //16 bit whole part, 16 bit fraction
189 * indexDesired: the fractional index we are looking up (16 bits index + 16 bits fraction)
200 EAS_I16 fraction; local
208 fraction = (EAS_I16)((indexDesired>>1) & 0x07FFF); //just use 15 bits of fractional part
231 //compute linear interpolation as (val1 + ((val2-val1)*fraction))
232 return(val1 + (EAS_I16)MULT_EG1_EG1(val2-val1,fraction));
/external/swiftshader/third_party/LLVM/lib/Analysis/
H A DProfileEstimatorPass.cpp218 double fraction = floor(incoming/Edges.size()); local
223 w = fraction;
224 incoming -= fraction;
289 double fraction = floor(BBWeight/Edges.size()); local
295 EdgeInformation[BB->getParent()][*ei] += fraction;
296 BBWeight -= fraction;
/external/webrtc/webrtc/modules/audio_coding/codecs/cng/
H A Daudio_encoder_cng.cc195 void AudioEncoderCng::SetProjectedPacketLossRate(double fraction) { argument
196 speech_encoder_->SetProjectedPacketLossRate(fraction);

Completed in 981 milliseconds

123