allensdk.internal.model.glif.rc module¶
- allensdk.internal.model.glif.rc.least_squares_RCEl_calc_tested(voltage_list, current_list, dt)[source]¶
Calculate resistance, capacitance and resting potential by performing least squares on current and voltage.
- Parameters:
- voltage_list: list of arrays
voltage responses for several sweep repeats
- current_list: list of arrays
current injections for several sweep repeats
- dt: float
time step size in voltage and current traces
- Returns:
- r_list: list of floats
each value corresponds to the resistance of a sweep
- c_list: list of floats
each value corresponds to the capacitance of a sweep
- el_list: list of floats
each value corresponds to the resting potential of a sweep