Accord.Math.Integration.MonteCarloIntegration.Reset C# (CSharp) Method

Reset() public method

Manually resets the previously computed area and error estimates, so the integral can be computed from scratch without reusing previous computations.
public Reset ( ) : void
return void
        public void Reset()
        {
            this.sum = 0;
            this.sum2 = 0;
            this.count = 0;
            this.Area = 0;
            this.Error = Double.PositiveInfinity;
        }