@leanchuck/core - v0.1.1
    Preparing search index...

    Function quartileByRank

    • Assigns a quartile by rank within a sorted list (NTILE(4)).

      Rank 1 is the largest/first contributor. With this convention quartile 1 is the top quarter of the list.

      Parameters

      • rank: number

        1-based position in the sorted list.

      • count: number

        Total number of contributors.

      Returns Quartile

      The quartile 14.

      quartileByRank(1, 100);   // 1
      quartileByRank(60, 100); // 3