Set minimum allowed skew to 1e-12
This commit is contained in:
parent
9775f3a030
commit
597bb80d18
1 changed files with 4 additions and 4 deletions
|
@ -541,10 +541,10 @@ REF_SetReference(int stratum,
|
||||||
assert(initialised);
|
assert(initialised);
|
||||||
|
|
||||||
/* Avoid getting NaNs */
|
/* Avoid getting NaNs */
|
||||||
if (skew == 0.0)
|
if (skew < 1e-12)
|
||||||
skew = 1e-10;
|
skew = 1e-12;
|
||||||
if (our_skew == 0.0)
|
if (our_skew < 1e-12)
|
||||||
our_skew = 1e-10;
|
our_skew = 1e-12;
|
||||||
|
|
||||||
/* If we get a serious rounding error in the source stats regression
|
/* If we get a serious rounding error in the source stats regression
|
||||||
processing, there is a remote chance that the skew argument is a
|
processing, there is a remote chance that the skew argument is a
|
||||||
|
|
Loading…
Reference in a new issue