Class Normal

java.lang.Object
org.wpilib.math.random.Normal

public final class Normal extends Object
Utilities for generating normally distributed random values.
  • Method Details

    • normal

      public static <N extends Num> Matrix<N,N1> normal(Matrix<N,N1> stdDevs)
      Creates a vector of normally distributed random values with the given standard deviations for each element.
      Type Parameters:
      N - Num representing the dimensionality of the noise vector to create.
      Parameters:
      stdDevs - A matrix whose elements are the standard deviations of each element of the random vector.
      Returns:
      Vector of normally distributed values.