Class Gaussian

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  Gaussian.Parametric
      Parametric function where the input array contains the parameters of the Gaussian, ordered as follows: Norm Mean Standard deviation
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private double i2s2
      Inverse of twice the square of the standard deviation.
      private double is
      Inverse of the standard deviation.
      private double mean
      Mean.
      private double norm
      Normalization factor.
    • Constructor Summary

      Constructors 
      Constructor Description
      Gaussian()
      Normalized gaussian with zero mean and unit standard deviation.
      Gaussian​(double mean, double sigma)
      Normalized gaussian with given mean and standard deviation.
      Gaussian​(double norm, double mean, double sigma)
      Gaussian with given normalization factor, mean and standard deviation.
    • Field Detail

      • mean

        private final double mean
        Mean.
      • is

        private final double is
        Inverse of the standard deviation.
      • i2s2

        private final double i2s2
        Inverse of twice the square of the standard deviation.
      • norm

        private final double norm
        Normalization factor.
    • Constructor Detail

      • Gaussian

        public Gaussian​(double norm,
                        double mean,
                        double sigma)
                 throws NotStrictlyPositiveException
        Gaussian with given normalization factor, mean and standard deviation.
        Parameters:
        norm - Normalization factor.
        mean - Mean.
        sigma - Standard deviation.
        Throws:
        NotStrictlyPositiveException - if sigma <= 0.
      • Gaussian

        public Gaussian()
        Normalized gaussian with zero mean and unit standard deviation.