add coefficient of variation calculation + in fitter

This commit is contained in:
a.ott
2020-05-11 10:21:17 +02:00
parent 2d04311790
commit b37db0ea36
5 changed files with 45 additions and 27 deletions

View File

@@ -189,8 +189,9 @@ class LifacNoiseModel(AbstractModel):
vector_strength = hF.calculate_vector_strength_from_spiketimes(time_trace, stimulus_array, spiketimes, self.get_sampling_interval())
serial_correlation = hF.calculate_serial_correlation(np.array(spiketimes), max_lag)
coeffient_of_variation = hF.calculate_coefficient_of_variation(spiketimes)
return baseline_freq, vector_strength, serial_correlation
return baseline_freq, vector_strength, serial_correlation, coeffient_of_variation
def calculate_fi_markers(self, contrasts, stimulus_freq):
"""