require the integrand to be an epsilon away from zero

This commit is contained in:
Valentin Boettcher 2022-06-07 14:09:17 +02:00
parent 10fadb9a05
commit 95b8c8e629
2 changed files with 2 additions and 2 deletions

View file

@ -1,7 +1,7 @@
[tool.poetry]
description = "Generate continuous time stationary stochastic processes from a given auto correlation function."
name = "stocproc"
version = "1.1.1"
version = "1.1.2"
authors = ["Richard Hartmann <richard.hartmann@tu-dresden.de>"]
license = "BSD (3 clause)"
classifiers = [

View file

@ -48,7 +48,7 @@ def find_integral_boundary(integrand, tol, ref_val, max_val, x0):
_i = 0
x0 = float(x0)
while integrand(ref_val) == 0:
while integrand(ref_val) < 1e-2:
ref_val += 1
I_ref = integrand(ref_val)