discSpec.py
def costFcn_magic(par, g, tau, imode):
	""""helper function for mergeModes; establishes cost function to minimize"""
	gn   = par[0]
	taun = par[1]

	g1   = g[imode]
	g2   = g[imode+1]
	tau1 = tau[imode]
	tau2 = tau[imode+1]

	tmin = min(tau1, tau2)/10.
	tmax = max(tau1, tau2)*10.

	return quad(normKern_magic, tmin, tmax, args=(gn, taun, g1, tau1, g2, tau2))[0]
helper function for mergeModes; establishes cost function to minimize
helper function for mergeModes; establishes cost function to minimize
helper function for mergeModes ; establishes cost function to minimize
def costFcn_magic(par, g, tau, imode):
	gn   = par[0]
	taun = par[1]
	g1   = g[imode]
	g2   = g[imode+1]
	tau1 = tau[imode]
	tau2 = tau[imode+1]
	tmin = min(tau1, tau2)/10.
	tmax = max(tau1, tau2)*10.
	return quad(normKern_magic, tmin, tmax, args=(gn, taun, g1, tau1, g2, tau2))[0]
def costFcn_magic ( par , g , tau , imode ) : gn = par [ 0 ] taun = par [ 1 ] g1 = g [ imode ] g2 = g [ imode + 1 ] tau1 = tau [ imode ] tau2 = tau [ imode + 1 ] tmin = min ( tau1 , tau2 ) / 10. tmax = max ( tau1 , tau2 ) * 10. return quad ( normKern_magic , tmin , tmax , args = ( gn , taun , g1 , tau1 , g2 , tau2 ) ) [ 0 ]
helper function for mergeModes; establishes cost function to minimize
helper function for mergeModes ; establishes cost function to minimize
""""helper function for mergeModes; establishes cost function to minimize"""
par
g
tau
imode