XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Major
    • Resolution: Implemented
    • None
    • 1.2
    • arrays
    • None
    • Easy

    Description

      Create a selection API to select the k-th largest element in an array. This places at k the same value that would be at k in a fully sorted array.

      public final class Selection {
          public static void select(double[] a, int k);
          public static void select(double[] a, int from, int to, int k);
          public static void select(double[] a, int[] k);
          public static void select(double[] a, int from, int to, int[] k);
          // Extend to other primitive data types that are not easily sorted (e.g. long, float, int)
      

      Note: This API will support multiple points (int[] k) for use in quantile estimation of array data by interpolation of neighbouring values (see STATISTICS-85).

      Attachments

        1. SelectDataType.png
          111 kB
          Alex Herbert

        Issue Links

          Activity

            People

              Unassigned Unassigned
              aherbert Alex Herbert
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: