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: README.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -70,7 +70,7 @@ Once you have installed _pyspi_, you can learn how to apply the package by check
70
70
-[Finance: stock price time series](https://time-series-features.gitbook.io/pyspi/usage/walkthrough-tutorials/finance-stock-price-time-series)
71
71
72
72
73
-
-[Neuroimaging: fMRI time series)](https://time-series-features.gitbook.io/pyspi/usage/walkthrough-tutorials/neuroimaging-fmri-time-series)
73
+
-[Neuroimaging: fMRI time series](https://time-series-features.gitbook.io/pyspi/usage/walkthrough-tutorials/neuroimaging-fmri-time-series)
74
74
75
75
### Advanced Usage
76
76
For advanced users, we offer several additional guides in the [full documentation](https://time-series-features.gitbook.io/pyspi/usage/advanced-usage) on how you can distribute your _pyspi_ jobs across PBS clusters, as well as how you can construct your own subsets of SPIs.
Copy file name to clipboardExpand all lines: pyspi/calculator.py
+16-9Lines changed: 16 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -5,6 +5,8 @@
5
5
fromtqdmimporttqdm
6
6
fromcollectionsimportCounter
7
7
fromscipyimportstats
8
+
fromcoloramaimportinit, Fore
9
+
init(autoreset=True)
8
10
9
11
# From this package
10
12
from .dataimportData
@@ -34,18 +36,22 @@ class Calculator:
34
36
A pre-configured subset of SPIs to use. Options are "all", "fast", "sonnet", or "fabfour", defaults to "all".
35
37
configfile (str, optional):
36
38
The location of the YAML configuration file for a user-defined subset. See :ref:`Using a reduced SPI set`, defaults to :code:`'</path/to/pyspi>/pyspi/config.yaml'`
39
+
detrend (bool, optional):
40
+
If True, detrend the dataset along the time axis before normalising (if enabled), defaults to True.
37
41
normalise (bool, optional):
38
-
Normalise the dataset along the time axis before computing SPIs, defaults to True.
42
+
If True, z-score normalise the dataset along the time axis before computing SPIs, defaults to True.
43
+
Detrending (if enabled) is always applied before normalisation.
0 commit comments