public GaussianInterpolator(double sigma) { Contract.Requires <ArgumentException>(sigma > 0.0, "Sigma must be greater than 0"); this.sigma = sigma; gauss = new MathUtil.GaussianFactory(sigma); support = gauss.Support; }
public GaussianInterpolator(double sigma) { if (sigma <= 0.0) { throw new ArgumentOutOfRangeException(nameof(sigma), "Value must be greater than 0"); } this.sigma = sigma; gauss = new MathUtil.GaussianFactory(sigma); support = gauss.Support; }