Package 

Class RandomKt

    • Method Summary

      Modifier and Type Method Description
      final Double quantile(F64Array $self, Double q, RandomGenerator randomGenerator) Computes the q-th order statistic over this 1-D array.
      final Unit shuffle(F64Array $self, RandomGenerator randomGenerator) Randomly permutes the elements of this 1-D array.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • quantile

         final Double quantile(F64Array $self, Double q, RandomGenerator randomGenerator)

        Computes the q-th order statistic over this 1-D array.

        The implementation follows that of Commons Math. See JavaDoc of org.apache.commons.math3.stat.descriptive.rank.Percentile for computational details.

        The array is modified in-place. Do a F64Array.copy of the array to avoid mutation if necessary.

      • shuffle

         final Unit shuffle(F64Array $self, RandomGenerator randomGenerator)

        Randomly permutes the elements of this 1-D array.

        See https://en.wikipedia.org/wiki/Fisher%E2%80%93Yates_shuffle.