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
- If no low‐quantile bins exist, a warning is issued and `cutoff = NaN`.
50
-
- If no high‐quantile bins exist or :math:`\sigma_{\mathrm{high}} = 0`, a warning is issued and `cutoff = NaN`.
49
+
- If no low‐quantile bins exist, a warning is issued and ``cutoff = NaN``.
50
+
- If no high‐quantile bins exist or :math:`\sigma_{\mathrm{high}} = 0`, a warning is issued and ``cutoff = NaN``.
51
51
52
52
5. **Compute the low-to-peak ratio**
53
53
@@ -61,19 +61,20 @@ instead, it directly compares counts in the low‐amplitude bins to counts in hi
61
61
- If there are no low bins, :math:`\mathrm{ratio} = NaN`.
62
62
63
63
64
-
Together, (cutoff, ratio) quantify how suppressed the low‐end of the amplitude distribution is relative to the top quantile and to the peak.
64
+
Together, ``(cutoff, ratio)`` quantify how suppressed the low‐end of the amplitude distribution is relative to the top quantile and to the peak.
65
65
66
66
Expectation and use
67
67
-------------------
68
68
69
69
Noise cutoff attempts to describe whether an amplitude distribution is cut off.
70
-
Larger values of `cutoff` and `ratio` suggest that the distribution is cut-off.
71
-
IBL uses the default value of 1 to choose the number of lower bins, with a suggested threshold of 5 for `cutoff` and 0.1 for `ratio` to determine whether a unit is cut off or not.
72
-
In practice, the IBL threshold is quite conservative, and a lower threshold might be better for your data.
73
-
We suggest plotting the data using the `plot_amplitudes` widget to view your data when choosing your threshold.
70
+
Larger values of ``cutoff`` and ``ratio`` suggest that the distribution is cut-off.
71
+
IBL uses the default value of 1 (equivalent to e.g. ``low_quantile=0.01, n_bins=100``) to choose the number of
72
+
lower bins, with a suggested threshold of 5 for ``cutoff`` to determine whether a unit is cut off or not.
73
+
In practice, the IBL threshold is quite conservative, and a lower threshold might work better for your data.
74
+
We suggest plotting the data using the :py:func:`~spikeinterface.widgets.plot_amplitudes` widget to view your data when choosing your threshold.
74
75
It is suggested to use this metric when the amplitude histogram is **unimodal**.
75
76
76
-
The metric is loosely based on [Hill]_'s amplitude cutoff, but is here adapted (originally by [IBL2024]_) to avoid making the Gaussianity assumption on spike distributions.
77
+
The metric is loosely based on [Hill]_'s amplitude cutoff, but is here adapted (originally by [IBL2024]_) to avoid making the Gaussian assumption on spike distributions.
77
78
78
79
Example code
79
80
------------
@@ -118,8 +119,8 @@ Links to original implementations
118
119
119
120
* From `IBL implementation <https://github.com/int-brain-lab/ibllib/blob/2e1f91c622ba8dbd04fc53946c185c99451ce5d6/brainbox/metrics/single_units.py>`_
120
121
121
-
Note: Compared to the original implementation, we have added a comparison between the low-amplitude bins to the largest bin (`noise_ratio`).
122
-
The selection of low-amplitude bins is based on the `low_quantile` rather than the number of bins.
122
+
Note: Compared to the original implementation, we have added a comparison between the low-amplitude bins to the largest bin (``noise_ratio``).
123
+
The selection of low-amplitude bins is based on the ``low_quantile`` rather than the number of bins.
0 commit comments