Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 21 for datasets (0.04 sec)

  1. android/guava-tests/benchmark/com/google/common/math/QuantilesBenchmark.java

      private final double[][] datasets = new double[0x100][];
    
      @BeforeExperiment
      void setUp() {
        Random rng = new Random();
        for (int i = 0; i < 0x100; i++) {
          datasets[i] = new double[datasetSize];
          for (int j = 0; j < datasetSize; j++) {
            datasets[i][j] = rng.nextDouble();
          }
        }
      }
    
      private double[] dataset(int i) {
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Wed May 14 19:40:47 UTC 2025
    - 3.2K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/math/PairedStatsAccumulatorTest.java

        assertThat(manyValuesAccumulatorByAddAllPartitionedPairedStats.populationCovariance())
            .isWithin(ALLOWED_ERROR)
            .of(MANY_VALUES_SUM_OF_PRODUCTS_OF_DELTAS / MANY_VALUES_COUNT);
        // For datasets of many double values, we test many combinations of finite and non-finite
        // x-values:
        for (ManyValues values : ALL_MANY_VALUES) {
          PairedStatsAccumulator accumulator =
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Thu Dec 11 20:45:32 UTC 2025
    - 23.4K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/math/QuantilesTest.java

        long[] dataset = Longs.toArray(SIXTEEN_SQUARES_LONGS);
        assertThat(Quantiles.scale(10).index(1).compute(dataset))
            .isWithin(ALLOWED_ERROR)
            .of(SIXTEEN_SQUARES_DECILE_1);
        assertThat(dataset).asList().isEqualTo(SIXTEEN_SQUARES_LONGS);
      }
    
      public void testScale_index_compute_intVarargs() {
        int[] dataset = Ints.toArray(SIXTEEN_SQUARES_INTEGERS);
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Thu Dec 11 20:45:32 UTC 2025
    - 29.8K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/math/QuantilesTest.java

        long[] dataset = Longs.toArray(SIXTEEN_SQUARES_LONGS);
        assertThat(Quantiles.scale(10).index(1).compute(dataset))
            .isWithin(ALLOWED_ERROR)
            .of(SIXTEEN_SQUARES_DECILE_1);
        assertThat(dataset).asList().isEqualTo(SIXTEEN_SQUARES_LONGS);
      }
    
      public void testScale_index_compute_intVarargs() {
        int[] dataset = Ints.toArray(SIXTEEN_SQUARES_INTEGERS);
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Thu Dec 11 20:45:32 UTC 2025
    - 29.8K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/math/PairedStatsTest.java

        assertThat(TWO_VALUES_PAIRED_STATS.populationCovariance())
            .isWithin(ALLOWED_ERROR)
            .of(TWO_VALUES_SUM_OF_PRODUCTS_OF_DELTAS / 2);
        // For datasets of many double values, we test many combinations of finite and non-finite
        // x-values:
        for (ManyValues values : ALL_MANY_VALUES) {
          PairedStats stats = createPairedStatsOf(values.asIterable(), OTHER_MANY_VALUES);
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Thu Dec 11 20:45:32 UTC 2025
    - 14K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/math/PairedStatsTest.java

        assertThat(TWO_VALUES_PAIRED_STATS.populationCovariance())
            .isWithin(ALLOWED_ERROR)
            .of(TWO_VALUES_SUM_OF_PRODUCTS_OF_DELTAS / 2);
        // For datasets of many double values, we test many combinations of finite and non-finite
        // x-values:
        for (ManyValues values : ALL_MANY_VALUES) {
          PairedStats stats = createPairedStatsOf(values.asIterable(), OTHER_MANY_VALUES);
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Thu Dec 11 20:45:32 UTC 2025
    - 14K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/math/PairedStatsAccumulatorTest.java

        assertThat(manyValuesAccumulatorByAddAllPartitionedPairedStats.populationCovariance())
            .isWithin(ALLOWED_ERROR)
            .of(MANY_VALUES_SUM_OF_PRODUCTS_OF_DELTAS / MANY_VALUES_COUNT);
        // For datasets of many double values, we test many combinations of finite and non-finite
        // x-values:
        for (ManyValues values : ALL_MANY_VALUES) {
          PairedStatsAccumulator accumulator =
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Thu Dec 11 20:45:32 UTC 2025
    - 23.4K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/math/StatsAccumulatorTest.java

            .isWithin(ALLOWED_ERROR)
            .of(MANY_VALUES_MEAN);
        assertThat(manyValuesAccumulatorByAddAllStatsAccumulator.mean())
            .isWithin(ALLOWED_ERROR)
            .of(MANY_VALUES_MEAN);
        // For datasets of many double values created from an iterable, we test many combinations of
        // finite and non-finite values:
        for (ManyValues values : ALL_MANY_VALUES) {
          StatsAccumulator accumulator = new StatsAccumulator();
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Thu Dec 11 20:45:32 UTC 2025
    - 36.9K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/math/LinearTransformation.java

      public static LinearTransformation horizontal(double y) {
        checkArgument(isFinite(y));
        double slope = 0.0;
        return new RegularLinearTransformation(slope, y);
      }
    
      /**
       * Builds an instance for datasets which contains {@link Double#NaN}. The {@link #isHorizontal}
       * and {@link #isVertical} methods return {@code false} and the {@link #slope}, and {@link
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Mon Aug 11 19:31:30 UTC 2025
    - 9.7K bytes
    - Viewed (0)
  10. src/test/java/jcifs/SidResolverTest.java

            assertThrows(CIFSException.class, () -> sidResolver.getServerSid(mockContext, testServerName));
        }
    
        // Test with large datasets
        @Test
        void testResolveSids_LargeArray() throws CIFSException {
            SID[] largeSidArray = new SID[1000];
            for (int i = 0; i < 1000; i++) {
                largeSidArray[i] = mock(SID.class);
            }
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 15.5K bytes
    - Viewed (0)
Back to top