Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 33 for Fortino (0.19 sec)

  1. android/guava-tests/benchmark/com/google/common/collect/ComparatorDelegationOverheadBenchmark.java

    import com.google.caliper.Benchmark;
    import com.google.caliper.Param;
    import java.util.Arrays;
    import java.util.Comparator;
    import java.util.Random;
    
    /**
     * A benchmark to determine the overhead of sorting with {@link Ordering#from(Comparator)}, or with
     * {@link Ordering#natural()}, as opposed to using the inlined {@link Arrays#sort(Object[])}
     * implementation, which uses {@link Comparable#compareTo} directly.
     *
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 2.5K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/collect/Iterators.java

      }
    
      /**
       * An iterator that performs a lazy N-way merge, calculating the next value each time the iterator
       * is polled. This amortizes the sorting cost over the iteration and requires less memory than
       * sorting all elements at once.
       *
       * <p>Retrieving a single element takes approximately O(log(M)) time, where M is the number of
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Apr 30 18:43:01 GMT 2024
    - 51.1K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/math/QuantilesAlgorithm.java

     * @since 20.0
     */
    enum QuantilesAlgorithm {
    
      /**
       * Sorts the dataset, and picks values from it. When computing multiple quantiles, we sort once
       * and pick multiple values.
       */
      SORTING {
    
        @Override
        double singleQuantile(int index, int scale, double[] dataset) {
          Arrays.sort(dataset);
          return singleQuantileFromSorted(index, scale, dataset);
        }
    
        @Override
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Tue Feb 01 16:30:37 GMT 2022
    - 7.1K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/math/QuantilesAlgorithm.java

     * @since 20.0
     */
    enum QuantilesAlgorithm {
    
      /**
       * Sorts the dataset, and picks values from it. When computing multiple quantiles, we sort once
       * and pick multiple values.
       */
      SORTING {
    
        @Override
        double singleQuantile(int index, int scale, double[] dataset) {
          Arrays.sort(dataset);
          return singleQuantileFromSorted(index, scale, dataset);
        }
    
        @Override
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Feb 01 16:30:37 GMT 2022
    - 7.1K bytes
    - Viewed (0)
  5. guava/src/com/google/common/collect/ImmutableList.java

          default:
            return construct(elements.clone());
        }
      }
    
      /**
       * Returns an immutable list containing the given elements, sorted according to their natural
       * order. The sorting algorithm used is stable, so elements that compare as equal will stay in the
       * order in which they appear in the input.
       *
       * <p>If your data has no duplicates, or you wish to deduplicate elements, use {@code
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 30K bytes
    - Viewed (1)
  6. android/guava/src/com/google/common/base/Ascii.java

      public static final byte CAN = 24;
    
      /**
       * End of Medium: A control character associated with the sent data which may be used to identify
       * the physical end of the medium, or the end of the used, or wanted, portion of information
       * recorded on a medium. (The position of this character does not necessarily correspond to the
       * physical end of the medium.)
       *
       * @since 8.0
       */
      public static final byte EM = 25;
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Jul 19 15:43:07 GMT 2021
    - 21.6K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/math/Quantiles.java

     *
     * <p>If any values in the input are {@link Double#NaN NaN} then all values returned are {@link
     * Double#NaN NaN}. (This is the one occasion when the behaviour is not the same as you'd get from
     * sorting with {@link java.util.Arrays#sort(double[]) Arrays.sort(double[])} or {@link
     * java.util.Collections#sort(java.util.List) Collections.sort(List&lt;Double&gt;)} and selecting
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri May 12 17:02:53 GMT 2023
    - 29.9K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/io/RandomAmountInputStream.java

    import static com.google.common.base.Preconditions.checkNotNull;
    
    import java.io.FilterInputStream;
    import java.io.IOException;
    import java.io.InputStream;
    import java.util.Random;
    
    /** Returns a random portion of the requested bytes on each call. */
    class RandomAmountInputStream extends FilterInputStream {
      private final Random random;
    
      public RandomAmountInputStream(InputStream in, Random random) {
        super(checkNotNull(in));
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 1.2K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/math/QuantilesAlgorithmTest.java

      private static final int DATASET_SIZE = 1000;
      private static final double ALLOWED_ERROR = 1.0e-10;
      private static final QuantilesAlgorithm REFERENCE_ALGORITHM = QuantilesAlgorithm.SORTING;
      private static final Set<QuantilesAlgorithm> NON_REFERENCE_ALGORITHMS =
          Sets.difference(
              ImmutableSet.copyOf(QuantilesAlgorithm.values()), ImmutableSet.of(REFERENCE_ALGORITHM));
    
      private double[] dataset;
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 3.4K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/graph/ElementOrderTest.java

        assertThat(network.edges()).containsExactly("p", "i", "e").inOrder();
        assertThat(network.nodeOrder()).isEqualTo(unordered());
        assertThat(network.nodes()).containsExactly(4, 1, 3);
      }
    
      // Sorting of user-defined classes
    
      @Test
      public void customComparator() {
        Comparator<NonComparableSuperClass> comparator =
            new Comparator<NonComparableSuperClass>() {
              @Override
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Oct 10 19:45:10 GMT 2022
    - 8.1K bytes
    - Viewed (0)
Back to top