code: public double Function1D(double x) {
          return Math.exp(x * x / (-2 * sqrSigma)) / (Math.sqrt(2 * Math.PI) * sigma);
      }
docs: 1-D Gaussian function.
  
  @param x value.
  @return Function's value at point x.