% This file is licensed under the Allen Institute Terms of Use, which can be found at:
%http://www.alleninstitute.org/Media/policies/terms_of_use_content.html

%------------------------------------------------------------------------------------

%Model function to use with nlinfit to fit an exponential to transient
%times as a function of moments and tail weight numbers of randomly
%generated synaptic weight distributions.
%
%Inputs: x=vector of independent quantity (moments or tail weight numbers here)
%        b= Initial coefficient values for the least squares estimation algorithm, specified as a vector.
%Output  y=best fit curve to data

function y=expfunfit(b,x)
y=b(1)*exp(x*b(2));
