You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,6 +2,7 @@
2
2
3
3
## 1.7.1
4
4
5
+
*[GH-23](https://github.com/Digiratory/StatTools/issues/23) feat: add Kasdin generator. fix: change first arg in lfilter in LBFBm generator.
5
6
*[GH-15](https://github.com/Digiratory/StatTools/issues/15) feat&fix: LBFBm generator update: generate with input value and return an increment instead of the absolute value of the signal.
@@ -49,13 +49,32 @@ base = 1.2 # the basis for the filter optimization algorithm
49
49
target_len =4000# number of generation iterations
50
50
51
51
generator = LBFBmGenerator(h, filter_len, base)
52
-
trajectory= []
53
-
for value in islice(generator, target_len):
54
-
trajectory.append(value)
52
+
signal= []
53
+
for value in islice(generator, target_len):
54
+
signal.append(value)
55
55
```
56
56
57
57
For more information and generator validation, see [lbfbm_generator.ipynb](/research/lbfbm_generator.ipynb).
58
58
59
+
It is also possible to use the method of generating increments with a given H using `KasdinGenerator`.
60
+
61
+
```python
62
+
from StatTools.generators.kasdin_generator import KasdinGenerator
63
+
h =0.8# choose Hurst parameter
64
+
target_len =4000# number of generation iterations
65
+
66
+
generator = KasdinGenerator(h, length=target_len)
67
+
68
+
# the first option
69
+
signal = generator.get_full_sequence()
70
+
71
+
# the second option
72
+
signal_list = []
73
+
for sample in generator:
74
+
signal_list.append(sample)
75
+
```
76
+
For more information see Kasdin, N. J. (1995). Discrete simulation of colored noise and stochastic processes and 1/f/sup /spl alpha// power law noise generation. doi:10.1109/5.381848.
77
+
59
78
### Fluctuational Analysis
60
79
61
80
1. Example of Detrended Fluctuational Analysis (DFA)
0 commit comments