Skip to content

Commit

Permalink
readme updates
Browse files Browse the repository at this point in the history
  • Loading branch information
Fabi committed Aug 9, 2024
1 parent 061ff1e commit f017f89
Show file tree
Hide file tree
Showing 5 changed files with 148 additions and 98 deletions.
23 changes: 22 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,22 +61,43 @@ irasa_out = irasa(sig,

```

![image info](./simulations/example_knee.png)

Extract periodic parameters

```python

irasa_out.get_peaks()

```
| ch_name | cf | bw | pw |
|----------:|-----:|--------:|-------:|
| 0 | 9.5 | 1.44337 | 0.4146 |

Extract aperiodic parameters

```python

irasa_out.fit_aperiodic_model(fit_func='knee')
irasa_out.fit_aperiodic_model(fit_func='knee').aperiodic_params

```

| Offset | Knee | Exponent_1 | Exponent_2 | fit_type | Knee Frequency (Hz) | ch_name |
|---------:|-------:|-------------:|-------------:|:-----------|----------------------:|----------:|
| 1.38098 | 532.91 | 0.511999 | 1.89448 | knee | 8.59554 | 0 |

And the goodness of fit

```python

irasa_out.fit_aperiodic_model(fit_func='knee').gof

```

| mse | r_squared | BIC | AIC | fit_type | ch_name |
|------------:|------------:|---------:|---------:|:-----------|----------:|
| 3.02402e-05 | 0.999894 | -2049.69 | -2062.86 | knee | 0 |


### How to Contribute

Expand Down
182 changes: 86 additions & 96 deletions examples/basic_functionality.ipynb

Large diffs are not rendered by default.

40 changes: 39 additions & 1 deletion pixi.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ neurodsp = ">=2.2.0,<2.3"
mne = ">=1.7.0,<1.8"
mypy = ">=1.10.1,<2"
pandas-stubs = ">=2.2.2.240603,<3"
tabulate = ">=0.9.0,<0.10"

[tool.pixi.feature]
py311 = {dependencies = {python="3.11.*"}}
Expand Down
Binary file added simulations/example_knee.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit f017f89

Please sign in to comment.