updated calculate integral

This commit is contained in:
mbergmann 2024-10-23 09:24:05 +02:00
parent 1205b376ee
commit b8c110fddf

View File

@ -54,7 +54,7 @@ def binary_spikes(spike_times, duration, dt):
binary[spike_indices] = 1 # put the indices into binary binary[spike_indices] = 1 # put the indices into binary
return binary return binary
def calculate_integral(freq, power, point, delta): def calculate_integral(freq, power, point, delta = 2.5):
""" """
Calculate the integral around a single specified point. Calculate the integral around a single specified point.
@ -66,8 +66,8 @@ def calculate_integral(freq, power, point, delta):
An array of power spectral density values. An array of power spectral density values.
point : float point : float
The harmonic frequency at which to calculate the integral. The harmonic frequency at which to calculate the integral.
delta : float delta : float, optional
Radius of the range for integration around the point. Radius of the range for integration around the point. The default is 2.5.
Returns Returns
------- -------