Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 12 for 1E (0.13 sec)

  1. guava-tests/test/com/google/common/math/LinearTransformationTest.java

    import junit.framework.TestCase;
    
    /**
     * Tests for {@link LinearTransformation}.
     *
     * @author Pete Gillin
     */
    public class LinearTransformationTest extends TestCase {
    
      private static final double ALLOWED_ERROR = 1e-10;
    
      public void testMappingAnd_regular() {
        double x1 = 1.2;
        double y1 = 3.4;
        double xDelta = 5.6;
        double yDelta = 7.8;
        LinearTransformation transformation =
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 7.1K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/math/LinearTransformationTest.java

    import junit.framework.TestCase;
    
    /**
     * Tests for {@link LinearTransformation}.
     *
     * @author Pete Gillin
     */
    public class LinearTransformationTest extends TestCase {
    
      private static final double ALLOWED_ERROR = 1e-10;
    
      public void testMappingAnd_regular() {
        double x1 = 1.2;
        double y1 = 3.4;
        double xDelta = 5.6;
        double yDelta = 7.8;
        LinearTransformation transformation =
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 7.1K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/primitives/FloatsTest.java

        assertThat(converter.convert("-1")).isEqualTo((Float) (-1.0f));
        assertThat(converter.convert("1e6")).isEqualTo((Float) 1e6f);
        assertThat(converter.convert("1e-6")).isEqualTo((Float) 1e-6f);
      }
    
      public void testStringConverter_convertError() {
        try {
          Floats.stringConverter().convert("notanumber");
          fail();
        } catch (NumberFormatException expected) {
        }
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 29 15:43:06 GMT 2024
    - 29.5K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/primitives/DoublesTest.java

        assertThat(converter.convert("-1")).isEqualTo((Double) (-1.0));
        assertThat(converter.convert("1e6")).isEqualTo((Double) 1e6);
        assertThat(converter.convert("1e-6")).isEqualTo((Double) 1e-6);
      }
    
      public void testStringConverter_convertError() {
        try {
          Doubles.stringConverter().convert("notanumber");
          fail();
        } catch (NumberFormatException expected) {
        }
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Thu Feb 29 15:43:06 GMT 2024
    - 31.5K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/primitives/DoublesTest.java

        assertThat(converter.convert("-1")).isEqualTo((Double) (-1.0));
        assertThat(converter.convert("1e6")).isEqualTo((Double) 1e6);
        assertThat(converter.convert("1e-6")).isEqualTo((Double) 1e-6);
      }
    
      public void testStringConverter_convertError() {
        try {
          Doubles.stringConverter().convert("notanumber");
          fail();
        } catch (NumberFormatException expected) {
        }
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 29 15:43:06 GMT 2024
    - 31.5K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/hash/BloomFilterTest.java

            bitArray.bitSize() > 0);
    
        // Ideally we would also test the bitSize() overflow of this BF, but it runs out of heap space
        // BloomFilter.create(Funnels.unencodedCharsFunnel(), 244412641, 1e-11);
      }
    
      /**
       * Asserts that {@link BloomFilter#approximateElementCount} is within 1 percent of the expected
       * value.
       */
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Nov 09 22:49:56 GMT 2023
    - 21.3K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/util/concurrent/RateLimiterTest.java

    import junit.framework.TestCase;
    import org.mockito.Mockito;
    
    /**
     * Tests for RateLimiter.
     *
     * @author Dimitris Andreou
     */
    public class RateLimiterTest extends TestCase {
      private static final double EPSILON = 1e-8;
    
      private final FakeStopwatch stopwatch = new FakeStopwatch();
    
      public void testSimple() {
        RateLimiter limiter = RateLimiter.create(5.0, stopwatch);
        limiter.acquire(); // R0.00, since it's the first request
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 21.6K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/util/concurrent/RateLimiterTest.java

    import junit.framework.TestCase;
    import org.mockito.Mockito;
    
    /**
     * Tests for RateLimiter.
     *
     * @author Dimitris Andreou
     */
    public class RateLimiterTest extends TestCase {
      private static final double EPSILON = 1e-8;
    
      private final FakeStopwatch stopwatch = new FakeStopwatch();
    
      public void testSimple() {
        RateLimiter limiter = RateLimiter.create(5.0, stopwatch);
        limiter.acquire(); // R0.00, since it's the first request
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 21.6K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/hash/BloomFilterTest.java

            bitArray.bitSize() > 0);
    
        // Ideally we would also test the bitSize() overflow of this BF, but it runs out of heap space
        // BloomFilter.create(Funnels.unencodedCharsFunnel(), 244412641, 1e-11);
      }
    
      /**
       * Asserts that {@link BloomFilter#approximateElementCount} is within 1 percent of the expected
       * value.
       */
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Nov 09 22:49:56 GMT 2023
    - 21.3K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/primitives/FloatsTest.java

        assertThat(converter.convert("-1")).isEqualTo((Float) (-1.0f));
        assertThat(converter.convert("1e6")).isEqualTo((Float) 1e6f);
        assertThat(converter.convert("1e-6")).isEqualTo((Float) 1e-6f);
      }
    
      public void testStringConverter_convertError() {
        try {
          Floats.stringConverter().convert("notanumber");
          fail();
        } catch (NumberFormatException expected) {
        }
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Thu Feb 29 15:43:06 GMT 2024
    - 29.5K bytes
    - Viewed (0)
Back to top