Class RandomKt

  • All Implemented Interfaces:

    
    public final class RandomKt
    
                        
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final static Double quantile(F64Array $self, Double q, RandomGenerator randomGenerator) Computes the q-th order statistic over this 1-D array.
      final static 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
    • Constructor Detail

    • Method Detail

      • quantile

         final static 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.

        Since:

        0.2.0

      • shuffle

         final static 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.

        Since:

        0.2.0