Commit 2046785
* 'Fixed `gauss_2d_large()`.
`kcsd.validation.csd_profile.gauss_2d_large(seed=63)` does not return
NaN anymore.
`repeatUntilValid()` decorator has been defined for that purpose.
A simple test for the fix provided in the `__main__` section of the module.
Note: The issue has not been solved by fixing distribution of
the `zs` variable in order to provide backward-compatibility.
* 2**32 - 1 included as possible alternative seed in the `kcsd.validation.csd_profile.repeatUntilValid()` decorator.
* Protection of `repeatUntilValid()` decorator against (extremely unlikely) neverending loop of seeds.
* `repeatUntilValid()` decorator reffactored
Seed sequence generation moved to `seedSequence()` generator function.
* `seedSequence()` generator function simplified (the generated sequence has changed though).
* Remove unnecessary imports
According to https://docs.python.org/3/library/builtins.html imports
from `builtsin` are unnecessary. As `builtsin` is Python 3 only,
their removal increases beckward-compatibility of the package.
Fixes #77
* `KCSD.values()` vectorized
`KCSD.values()` is approximately 4 times faster.
Fixes #93
* Increased `KCSD.values()` numerical stability
`inv(K) V` is calculated by solving `K X = V` for `X`
As a side effect `KCSD.values()` is faster.
Fixes #95
1 parent 2ce755a commit 2046785
1 file changed
Lines changed: 6 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
211 | 211 | | |
212 | 212 | | |
213 | 213 | | |
214 | | - | |
215 | | - | |
| 214 | + | |
216 | 215 | | |
217 | 216 | | |
218 | | - | |
219 | | - | |
220 | | - | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
221 | 222 | | |
222 | 223 | | |
223 | 224 | | |
| |||
0 commit comments