Commit e2470978 authored by Unknown's avatar Unknown
Browse files

SHOestimateGuess signature change

Swap w_vec and resp_vec in function and call.  
parent 2530a80b
......@@ -149,7 +149,7 @@ class GuessMethods(object):
def sho_guess(resp_vec):
guess = SHOestimateGuess(w_vec, resp_vec, num_points)
guess = SHOestimateGuess(resp_vec, w_vec, num_points)
guess = np.hstack([guess, np.array(r_square(resp_vec, SHOfunc, guess, w_vec))])
......
......@@ -25,7 +25,7 @@ def SHOfunc(parms, w_vec):
(w_vec ** 2 - 1j * w_vec * parms[1] / parms[2] - parms[1] ** 2)
def SHOestimateGuess(w_vec, resp_vec, num_points=5):
def SHOestimateGuess(resp_vec, w_vec, num_points=5):
"""
Generates good initial guesses for fitting
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment