Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Jan 19, 2024
1 parent 067b335 commit fd39699
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/spikeinterface/preprocessing/filter_gaussian.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ def _create_gaussian(self, N: int, cutoff_f: float):
source_class=GaussianBandpassFilterRecording, name="gaussian_filter"
)


def normal_pdf(x, mu: float = 0.0, sigma: float = 1.0):
"""
Manual implementation of the Normal distribution pdf (probability density function).
Expand All @@ -135,4 +136,4 @@ def normal_pdf(x, mu: float = 0.0, sigma: float = 1.0):
The pdf of the Normal distribution for the given x-axis.
"""

return 1/(sigma * np.sqrt(2*np.pi)) * np.exp(-(x - mu)**2 / (2 * sigma**2))
return 1 / (sigma * np.sqrt(2 * np.pi)) * np.exp(-((x - mu) ** 2) / (2 * sigma**2))

0 comments on commit fd39699

Please sign in to comment.