HomeSort by relevance Sort by last modified time
    Searched refs:Fraction (Results 1 - 25 of 45) sorted by null

1 2

  /external/apache-commons-math/src/main/java/org/apache/commons/math/fraction/
FractionField.java 18 package org.apache.commons.math.fraction;
29 * @see Fraction
33 public class FractionField implements Field<Fraction>, Serializable {
51 public Fraction getOne() {
52 return Fraction.ONE;
56 public Fraction getZero() {
57 return Fraction.ZERO;
Fraction.java 17 package org.apache.commons.math.fraction;
37 public class Fraction
39 implements FieldElement<Fraction>, Comparable<Fraction>, Serializable {
41 /** A fraction representing "2 / 1". */
42 public static final Fraction TWO = new Fraction(2, 1);
44 /** A fraction representing "1". */
45 public static final Fraction ONE = new Fraction(1, 1)
    [all...]
FractionFormat.java 18 package org.apache.commons.math.fraction;
31 * Formats a Fraction number in proper format or improper format. The number
83 * @param f Fraction object to format
84 * @return A formatted fraction in proper form.
86 public static String formatFraction(Fraction f) {
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
    [all...]
ProperFractionFormat.java 17 package org.apache.commons.math.fraction;
28 * Formats a Fraction number in proper format. The number format for each of
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,
96 int num = fraction.getNumerator();
97 int den = fraction.getDenominator();
123 * Parses a string to produce a {@link Fraction} object. This metho
    [all...]
  /prebuilts/gdb/darwin-x86/lib/python2.7/
fractions.py 13 __all__ = ['Fraction', 'gcd']
44 class Fraction(Rational):
47 In the two-argument form of the constructor, Fraction(8, 6) will
50 defaults to 1 so that Fraction(3) == 3 and Fraction() == 0.
69 """Constructs a Fraction.
77 >>> Fraction(10, -8)
78 Fraction(-5, 4)
79 >>> Fraction(Fraction(1, 7), 5
    [all...]
  /prebuilts/gdb/linux-x86/lib/python2.7/
fractions.py 13 __all__ = ['Fraction', 'gcd']
44 class Fraction(Rational):
47 In the two-argument form of the constructor, Fraction(8, 6) will
50 defaults to 1 so that Fraction(3) == 3 and Fraction() == 0.
69 """Constructs a Fraction.
77 >>> Fraction(10, -8)
78 Fraction(-5, 4)
79 >>> Fraction(Fraction(1, 7), 5
    [all...]
  /prebuilts/python/darwin-x86/2.7.5/lib/python2.7/
fractions.py 13 __all__ = ['Fraction', 'gcd']
44 class Fraction(Rational):
47 In the two-argument form of the constructor, Fraction(8, 6) will
50 defaults to 1 so that Fraction(3) == 3 and Fraction() == 0.
69 """Constructs a Fraction.
77 >>> Fraction(10, -8)
78 Fraction(-5, 4)
79 >>> Fraction(Fraction(1, 7), 5
    [all...]
  /prebuilts/python/linux-x86/2.7.5/lib/python2.7/
fractions.py 13 __all__ = ['Fraction', 'gcd']
44 class Fraction(Rational):
47 In the two-argument form of the constructor, Fraction(8, 6) will
50 defaults to 1 so that Fraction(3) == 3 and Fraction() == 0.
69 """Constructs a Fraction.
77 >>> Fraction(10, -8)
78 Fraction(-5, 4)
79 >>> Fraction(Fraction(1, 7), 5
    [all...]
  /hardware/intel/img/psb_video/src/
psb_texture.h 68 unsigned short Fraction;
psb_overlay.h 261 unsigned short Fraction;
psb_texture.c 231 texture_priv->brightness.Fraction = 0;
233 texture_priv->contrast.Fraction = 0;
235 texture_priv->hue.Fraction = 0;
237 texture_priv->saturation.Fraction = 0;
    [all...]
psb_overlay.c     [all...]
  /external/apache-commons-math/src/main/java/org/apache/commons/math/linear/
MatrixUtils.java 31 import org.apache.commons.math.fraction.BigFraction;
32 import org.apache.commons.math.fraction.Fraction;
660 * Convert a {@link FieldMatrix}/{@link Fraction} matrix to a {@link RealMatrix}.
664 public static Array2DRowRealMatrix fractionMatrixToRealMatrix(final FieldMatrix<Fraction> m) {
670 /** Converter for {@link FieldMatrix}/{@link Fraction}. */
671 private static class FractionMatrixConverter extends DefaultFieldMatrixPreservingVisitor<Fraction> {
678 super(Fraction.ZERO);
690 public void visit(int row, int column, Fraction value) {
    [all...]
  /external/webrtc/webrtc/video/
send_statistics_proxy.cc 421 return Fraction(min_required_samples, 100.0f);
426 return Fraction(min_required_samples, 1000.0f);
429 int SendStatisticsProxy::BoolSampleCounter::Fraction(
send_statistics_proxy.h 119 int Fraction(int min_required_samples, float multiplier) const;
  /prebuilts/gcc/linux-x86/host/x86_64-w64-mingw32-4.8/x86_64-w64-mingw32/include/
dxva2api.h 249 USHORT Fraction;
421 return (float)f32.Value + (float)f32.Fraction / (1 << 16);
427 f32.Fraction = ((ULONG) (f * (1 << 16))) & 0xFFFF;
  /prebuilts/gdb/darwin-x86/lib/python2.7/test/
test_fractions.py 13 F = fractions.Fraction
57 """Test comparison of Fraction with a naive rational implementation."""
65 if isinstance(other, fractions.Fraction):
92 class DummyFraction(fractions.Fraction):
93 """Dummy Fraction subclass for copy and deepcopy testing."""
147 self.assertRaisesMessage(ZeroDivisionError, "Fraction(12, 0)",
197 ZeroDivisionError, "Fraction(3, 0)",
200 ValueError, "Invalid literal for Fraction: '3/'",
203 ValueError, "Invalid literal for Fraction: '/2'",
206 ValueError, "Invalid literal for Fraction: '3 /2'"
    [all...]
test_itertools.py 6 from fractions import Fraction
376 self.assertEqual(take(3, count(Fraction(2,3), Fraction(1,7))),
377 [Fraction(2,3), Fraction(17,21), Fraction(20,21)])
    [all...]
  /prebuilts/gdb/linux-x86/lib/python2.7/test/
test_fractions.py 13 F = fractions.Fraction
57 """Test comparison of Fraction with a naive rational implementation."""
65 if isinstance(other, fractions.Fraction):
92 class DummyFraction(fractions.Fraction):
93 """Dummy Fraction subclass for copy and deepcopy testing."""
147 self.assertRaisesMessage(ZeroDivisionError, "Fraction(12, 0)",
197 ZeroDivisionError, "Fraction(3, 0)",
200 ValueError, "Invalid literal for Fraction: '3/'",
203 ValueError, "Invalid literal for Fraction: '/2'",
206 ValueError, "Invalid literal for Fraction: '3 /2'"
    [all...]
test_itertools.py 6 from fractions import Fraction
376 self.assertEqual(take(3, count(Fraction(2,3), Fraction(1,7))),
377 [Fraction(2,3), Fraction(17,21), Fraction(20,21)])
    [all...]
  /prebuilts/python/darwin-x86/2.7.5/lib/python2.7/test/
test_fractions.py 13 F = fractions.Fraction
57 """Test comparison of Fraction with a naive rational implementation."""
65 if isinstance(other, fractions.Fraction):
92 class DummyFraction(fractions.Fraction):
93 """Dummy Fraction subclass for copy and deepcopy testing."""
147 self.assertRaisesMessage(ZeroDivisionError, "Fraction(12, 0)",
197 ZeroDivisionError, "Fraction(3, 0)",
200 ValueError, "Invalid literal for Fraction: '3/'",
203 ValueError, "Invalid literal for Fraction: '/2'",
206 ValueError, "Invalid literal for Fraction: '3 /2'"
    [all...]
test_itertools.py 6 from fractions import Fraction
376 self.assertEqual(take(3, count(Fraction(2,3), Fraction(1,7))),
377 [Fraction(2,3), Fraction(17,21), Fraction(20,21)])
    [all...]
  /prebuilts/python/linux-x86/2.7.5/lib/python2.7/test/
test_fractions.py 13 F = fractions.Fraction
57 """Test comparison of Fraction with a naive rational implementation."""
65 if isinstance(other, fractions.Fraction):
92 class DummyFraction(fractions.Fraction):
93 """Dummy Fraction subclass for copy and deepcopy testing."""
147 self.assertRaisesMessage(ZeroDivisionError, "Fraction(12, 0)",
197 ZeroDivisionError, "Fraction(3, 0)",
200 ValueError, "Invalid literal for Fraction: '3/'",
203 ValueError, "Invalid literal for Fraction: '/2'",
206 ValueError, "Invalid literal for Fraction: '3 /2'"
    [all...]
test_itertools.py 6 from fractions import Fraction
376 self.assertEqual(take(3, count(Fraction(2,3), Fraction(1,7))),
377 [Fraction(2,3), Fraction(17,21), Fraction(20,21)])
    [all...]
  /system/connectivity/shill/wifi/
scan_session_unittest.cc 138 // Test that we can get a bunch of frequencies up to a specified fraction.
139 TEST_F(ScanSessionTest, Fraction) {
171 // Test that we can get a bunch of frequencies up to a specified fraction,
172 // followed by another group up to a specified fraction.
206 // when the requested fraction has already been reached.
304 // previously seen frequencies) via the requested fraction.

Completed in 4186 milliseconds

1 2