Package qubx :: Module fit :: Class LorentzianCurve
[hide private]
[frames] | no frames]

Class LorentzianCurve

source code

object --+    
         |    
 BaseCurve --+
             |
            LorentzianCurve

Instance Methods [hide private]
 
__init__(self, expr='0.0', locals={})
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
eval(self, param_vals, xx, vvv=[])
Returns yy = f[param_vals](xx, *vvv).
source code

Inherited from BaseCurve: set_vars

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Instance Variables [hide private]

Inherited from BaseCurve: can_fit, can_resample, expr, hi, lo, name, param_defaults, params, pool

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, expr='0.0', locals={})
(Constructor)

source code 

x.__init__(...) initializes x; see help(type(x)) for signature

Parameters:
  • expr - optional string to further specify curve
  • locals - optional dict of names available in expr
Overrides: object.__init__
(inherited documentation)

eval(self, param_vals, xx, vvv=[])

source code 

Returns yy = f[param_vals](xx, *vvv). For vvv, you should previously have set_vars(v_names).

Parameters:
  • param_vals - list of float, corresponding to self.params
  • xx - numpy.array of x values
  • vvv - variable series corresponding to set_vars; list of numpy.array
Returns:
numpy.array of y values
Overrides: BaseCurve.eval
(inherited documentation)