linear_fit

simrun.synaptic_strength_fitting.linear_fit(gAMPANMDA, epsp)

Calculate a linear fit between the synaptic conductance and the EPSP.

Parameters:
gAMPANMDA : np.array

Synaptic conductance.

epsp : np.array

EPSP.

Returns:

The coefficients of the linear fit: offset and slope.

Return type:

np.array