def __init__(self, degree): coeffs = [] self.degree = degree for i in xrange(degree+1): coeffs.append("c"+str(i)) OneDFit.__init__(self, coeffs) self.setRootName("Poly")
def __init__(self, n): self.n = n params = ["off", "lin"] for i in range(n): p = str(i+1) params.extend(["A"+p, "mu"+p, "sig"+p]) OneDFit.__init__(self, params) self.setRootName("MultiGauss")
def __init__(self, n): params = ["off"] for i in range(n): p = str(i+1) params.extend(["A"+p, "mux"+p, "muy"+p, "sigx"+p, "sigy"+p, "rho"+p]) self.n = n OneDFit.__init__(self, params) self.setRootName("MultiGauss2d")
def __init__(self, n): # Number of components self.n = n # Building parameter list params = ["off", "lin"] for i in range(n): p = str(i+1) params.extend(["A"+p, "mu"+p, "al"+p, "ad"+p]) OneDFit.__init__(self, params) self.setRootName("MultiVoigt") # Use Voigt1d for evaluation self._v1d = Voigt1d() self._v1d["off"] = 0.0 self._v1d["lin"] = 0.0
def __init__(self): OneDFit.__init__(self, ["A", "mux", "muy", "sigx", "sigy", "rho"]) self.setRootName("Gaussian2d")
def __init__(self): OneDFit.__init__(self, ["c"]) self.setRootName("Constant")
def __init__(self): OneDFit.__init__(self, ["A", "tau", "t0", "off"]) self.setRootName("ExpDecay")
def __init__(self): OneDFit.__init__(self, ["A", "nu", "phi", "off"]) self.setRootName("Sine")
def __init__(self): OneDFit.__init__(self, ["A", "g", "mu", "off", "lin"]) self.setRootName("CauLor")
def __init__(self): OneDFit.__init__(self, ["A", "al", "ad", "mu", "lin", "off"]) self.setRestriction({"al":[0.0,None], "ad":[0.0,None]}) self.setRootName("Voigt")
def __init__(self): OneDFit.__init__(self, ["r", "per", "t0"]) self.setRootName("Circle2d")
def __init__(self): OneDFit.__init__(self, ["A", "mu", "sig", "off", "lin"]) self.setRootName("Gaussian")