Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 540 for indexes (0.05 sec)

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

        ImmutableSet<Integer> indexes = ImmutableSet.of(50, 90, 99);
        Map<Integer, Double> referenceQuantiles =
            REFERENCE_ALGORITHM.multipleQuantiles(indexes, 100, dataset.clone());
        assertThat(referenceQuantiles.keySet()).isEqualTo(indexes);
        for (QuantilesAlgorithm algorithm : NON_REFERENCE_ALGORITHMS) {
          Map<Integer, Double> quantiles = algorithm.multipleQuantiles(indexes, 100, dataset.clone());
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Dec 04 17:37:03 UTC 2017
    - 3.4K bytes
    - Viewed (0)
  2. schema/index.go

    				})
    
    				indexes[index.Name] = idx
    			}
    		}
    	}
    	for _, index := range indexes {
    		if index.Class == "UNIQUE" && len(index.Fields) == 1 {
    			index.Fields[0].Field.UniqueIndex = index.Name
    		}
    	}
    	return indexes
    }
    
    func (schema *Schema) LookIndex(name string) *Index {
    	if schema != nil {
    		indexes := schema.ParseIndexes()
    		for _, index := range indexes {
    			if index.Name == name {
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Sun Feb 04 07:49:19 UTC 2024
    - 3.7K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/math/Quantiles.java

         * @param indexes the quantile indexes, each of which must be in the inclusive range [0, q] for
         *     q-quantiles; the order of the indexes is unimportant, duplicates will be ignored, and the
         *     set will be snapshotted when this method is called
         * @throws IllegalArgumentException if {@code indexes} is empty
         */
        public ScaleAndIndexes indexes(int... indexes) {
          return new ScaleAndIndexes(scale, indexes.clone());
        }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri May 12 17:02:53 UTC 2023
    - 29.9K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/math/QuantilesTest.java

        for (int index = 0; index <= 100; index++) {
          indexes.add(index);
          expectedBuilder.put(index, expectedLargeDatasetPercentile(index));
        }
        Random random = new Random(770683168895677741L);
        Collections.shuffle(indexes, random);
        assertThat(percentiles().indexes(Ints.toArray(indexes)).computeInPlace(dataset))
            .comparingValuesUsing(QUANTILE_CORRESPONDENCE)
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 29.7K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/math/QuantilesAlgorithm.java

        @Override
        double singleQuantile(int index, int scale, double[] dataset) {
          return Quantiles.scale(scale).index(index).computeInPlace(dataset);
        }
    
        @Override
        Map<Integer, Double> multipleQuantiles(
            Collection<Integer> indexes, int scale, double[] dataset) {
          return Quantiles.scale(scale).indexes(indexes).computeInPlace(dataset);
        }
      },
      ;
    
      /**
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Feb 01 16:30:37 UTC 2022
    - 7.1K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/math/QuantilesAlgorithmTest.java

        ImmutableSet<Integer> indexes = ImmutableSet.of(50, 90, 99);
        Map<Integer, Double> referenceQuantiles =
            REFERENCE_ALGORITHM.multipleQuantiles(indexes, 100, dataset.clone());
        assertThat(referenceQuantiles.keySet()).isEqualTo(indexes);
        for (QuantilesAlgorithm algorithm : NON_REFERENCE_ALGORITHMS) {
          Map<Integer, Double> quantiles = algorithm.multipleQuantiles(indexes, 100, dataset.clone());
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Dec 04 17:37:03 UTC 2017
    - 3.4K bytes
    - Viewed (0)
  7. cmd/endpoint-ellipses_test.go

    			}
    			if !reflect.DeepEqual(testCase.indexes, gotIndexes) {
    				t.Errorf("Expected %v, got %v", testCase.indexes, gotIndexes)
    			}
    		})
    	}
    }
    
    // Test tests calculating set indexes.
    func TestGetSetIndexes(t *testing.T) {
    	testCases := []struct {
    		args       []string
    		totalSizes []uint64
    		indexes    [][]uint64
    		success    bool
    	}{
    		// Invalid inputs.
    		{
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 15.2K bytes
    - Viewed (0)
  8. guava/src/com/google/common/collect/DenseImmutableTable.java

            private int index = -1;
            private final int maxIndex = keyToIndex().size();
    
            @Override
            @CheckForNull
            protected Entry<K, V> computeNext() {
              for (index++; index < maxIndex; index++) {
                V value = getValue(index);
                if (value != null) {
                  return immutableEntry(getKey(index), value);
                }
              }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 10.1K bytes
    - Viewed (0)
  9. guava/src/com/google/common/escape/CharEscaperBuilder.java

         */
        @Override
        public String escape(String s) {
          int slen = s.length();
          for (int index = 0; index < slen; index++) {
            char c = s.charAt(index);
            if (c < replacements.length && replacements[c] != null) {
              return escapeSlow(s, index);
            }
          }
          return s;
        }
    
        @Override
        @CheckForNull
        protected char[] escape(char c) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jan 18 20:55:09 UTC 2022
    - 4K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/collect/DenseImmutableTable.java

            private int index = -1;
            private final int maxIndex = keyToIndex().size();
    
            @Override
            @CheckForNull
            protected Entry<K, V> computeNext() {
              for (index++; index < maxIndex; index++) {
                V value = getValue(index);
                if (value != null) {
                  return immutableEntry(getKey(index), value);
                }
              }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 10.1K bytes
    - Viewed (0)
Back to top