Class Matrix.Init.Gaussian

  • Enclosing class:
    Matrix.Init

    public static class Matrix.Init.Gaussian
    extends Matrix.Init
    Generate random numbers from the gaussian distribution to fill the matrix.

    The numbers will be centered around center, and have a standard deviation of range direction.

    • Constructor Detail

      • Gaussian

        public Gaussian​(double center,
                        double deviation)
        Create a new class.
        Parameters:
        center - center of the gaussian
        deviation - standard deviation
      • Gaussian

        public Gaussian​(double deviation)
        Create a new class.
        Parameters:
        deviation - standard deviation
    • Method Detail

      • apply

        public void apply​(Matrix m)
        Description copied from class: Matrix.Init
        Apply the initialization (in place) to a new matrix.
        Specified by:
        apply in class Matrix.Init
        Parameters:
        m - the matrix