示例#1
0
文件: coldatoms.py 项目: pwuertz/qao
 def __init__(self, data):
     LevmarFitter.__init__(self, ["A_t", "x_0", "r_x", "y_0", "r_y", "off"], data)
     
     cache_x = np.empty(data.shape[1], dtype=float)
     cache_y = np.empty(data.shape[0], dtype=float)
     self.cache = (cache_x, cache_y)
示例#2
0
文件: gauss.py 项目: pwuertz/qao
    def __init__(self, data):
        LevmarFitter.__init__(self, ["A", "x_0", "s", "off"], data)

        cache_z = np.empty_like(self._f)
        cache_e = np.empty_like(self._f)
        self.cache = (cache_z, cache_e)
示例#3
0
文件: gauss.py 项目: pwuertz/qao
 def __init__(self, data):
     LevmarFitter.__init__(self, ["A", "x_0", "s_x", "y_0", "s_y", "alpha", "off"], data)
示例#4
0
文件: gauss.py 项目: pwuertz/qao
    def __init__(self, data):
        LevmarFitter.__init__(self, ["A", "x_0", "s_x", "y_0", "s_y", "off"], data)

        cache_ex = np.empty(data.shape[1], dtype = DEFAULT_TYPE_NPY)
        cache_ey = np.empty(data.shape[0], dtype = DEFAULT_TYPE_NPY)
        self.cache = (cache_ex, cache_ey)