change noise term back to the output

This commit is contained in:
alexanderott 2021-02-03 13:02:27 +01:00
parent 24bed729c3
commit 919a63b36a

View File

@ -300,10 +300,10 @@ def simulate_fast(rectified_stimulus_array, total_time_s, parameters: np.ndarray
noise = noise_strength * noise_value / np.sqrt(step_size)
input_voltage[i] = input_voltage[i - 1] + (
(-input_voltage[i - 1] + rectified_stimulus_array[i] + noise) / dend_tau) * step_size
(-input_voltage[i - 1] + rectified_stimulus_array[i]) / dend_tau) * step_size
output_voltage[i] = output_voltage[i - 1] + ((v_base - output_voltage[i - 1] + v_offset + (
input_voltage[i] * input_scaling) - adaption[i - 1]) / mem_tau) * step_size
input_voltage[i] * input_scaling) - adaption[i - 1] + noise) / mem_tau) * step_size
adaption[i] = adaption[i - 1] + ((-adaption[i - 1]) / tau_a) * step_size