discSpec.py
def normKern_magic(t, gn, taun, g1, tau1, g2, tau2):
	"""helper function: for costFcn and mergeModes"""
	Gn = gn * np.exp(-t/taun)
	Go = g1 * np.exp(-t/tau1) + g2 * np.exp(-t/tau2)
	return (Gn/Go - 1.)**2
helper function: for costFcn and mergeModes
helper function: for costFcn and mergeModes
helper function : for costFcn and mergeModes
def normKern_magic(t, gn, taun, g1, tau1, g2, tau2):
	Gn = gn * np.exp(-t/taun)
	Go = g1 * np.exp(-t/tau1) + g2 * np.exp(-t/tau2)
	return (Gn/Go - 1.)**2
def normKern_magic ( t , gn , taun , g1 , tau1 , g2 , tau2 ) : Gn = gn * np . exp ( - t / taun ) Go = g1 * np . exp ( - t / tau1 ) + g2 * np . exp ( - t / tau2 ) return ( Gn / Go - 1. ) ** 2
helper function: for costFcn and mergeModes
helper function : for costFcn and mergeModes
"""helper function: for costFcn and mergeModes"""
t
gn
taun
g1
tau1
g2
tau2