Esempio n. 1
0
def Gauss2D(Xv, Yv, A, x0, y0, s):
    from PYME.Analysis.cModels.gauss_app import genGauss
    r = genGauss(Xv, Yv, A, x0, y0, s, 0, 0, 0)
    #r.strides = r.strides #Really dodgy hack to get around something which numpy is not doing right ....
    return r
Esempio n. 2
0
def Gauss2D(Xv,Yv, A,x0,y0,s):
    from PYME.Analysis.cModels.gauss_app import genGauss
    r = genGauss(Xv,Yv,A,x0,y0,s,0,0,0)
    #r.strides = r.strides #Really dodgy hack to get around something which numpy is not doing right ....
    return r
Esempio n. 3
0
def Gauss2D(Xv,Yv, A,x0,y0,s):
    from PYME.Analysis.cModels.gauss_app import genGauss
    r = genGauss(Xv,Yv,A,x0,y0,s,0,0,0)
    return r
Esempio n. 4
0
def f_gauss2d(p, X, Y):
    """2D Gaussian model function with linear background - parameter vector [A, x0, y0, sigma, background, lin_x, lin_y]"""
    A, x0, y0, s, b, b_x, b_y = p
    r = genGauss(X,Y,A,x0,y0,s,b,b_x,b_y) #this is coded in c and defined in gauss_app
    return r
Esempio n. 5
0
def f_gauss2d(p, X, Y):
    """2D Gaussian model function with linear background - parameter vector [A, x0, y0, sigma, background, lin_x, lin_y]"""
    A, x0, y0, s, b, b_x, b_y = p
    r = genGauss(X, Y, A, x0, y0, s, b, b_x,
                 b_y)  #this is coded in c and defined in gauss_app
    return r