mirror of
https://github.com/vale981/stocproc
synced 2025-03-04 17:21:42 -05:00
require the integrand to be an epsilon away from zero
This commit is contained in:
parent
10fadb9a05
commit
95b8c8e629
2 changed files with 2 additions and 2 deletions
|
@ -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 = [
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue