casa  $Rev:20696$
 All Classes Namespaces Files Functions Variables
fitter.py
Go to the documentation of this file.
00001 # This file was automatically generated by SWIG (http://www.swig.org).
00002 # Version 2.0.5
00003 #
00004 # Do not make changes to this file unless you know what you are doing--modify
00005 # the SWIG interface file instead.
00006 
00007 
00008 
00009 from sys import version_info
00010 if version_info >= (2,6,0):
00011     def swig_import_helper():
00012         from os.path import dirname
00013         import imp
00014         fp = None
00015         try:
00016             fp, pathname, description = imp.find_module('_fitter', [dirname(__file__)])
00017         except ImportError:
00018             import _fitter
00019             return _fitter
00020         if fp is not None:
00021             try:
00022                 _mod = imp.load_module('_fitter', fp, pathname, description)
00023             finally:
00024                 fp.close()
00025             return _mod
00026     _fitter = swig_import_helper()
00027     del swig_import_helper
00028 else:
00029     import _fitter
00030 del version_info
00031 try:
00032     _swig_property = property
00033 except NameError:
00034     pass # Python < 2.2 doesn't have 'property'.
00035 def _swig_setattr_nondynamic(self,class_type,name,value,static=1):
00036     if (name == "thisown"): return self.this.own(value)
00037     if (name == "this"):
00038         if type(value).__name__ == 'SwigPyObject':
00039             self.__dict__[name] = value
00040             return
00041     method = class_type.__swig_setmethods__.get(name,None)
00042     if method: return method(self,value)
00043     if (not static):
00044         self.__dict__[name] = value
00045     else:
00046         raise AttributeError("You cannot add attributes to %s" % self)
00047 
00048 def _swig_setattr(self,class_type,name,value):
00049     return _swig_setattr_nondynamic(self,class_type,name,value,0)
00050 
00051 def _swig_getattr(self,class_type,name):
00052     if (name == "thisown"): return self.this.own()
00053     method = class_type.__swig_getmethods__.get(name,None)
00054     if method: return method(self)
00055     raise AttributeError(name)
00056 
00057 def _swig_repr(self):
00058     try: strthis = "proxy of " + self.this.__repr__()
00059     except: strthis = ""
00060     return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,)
00061 
00062 try:
00063     _object = object
00064     _newclass = 1
00065 except AttributeError:
00066     class _object : pass
00067     _newclass = 0
00068 
00069 
00070 class fitter(_object):
00071     """Proxy of C++ casac::fitter class"""
00072     __swig_setmethods__ = {}
00073     __setattr__ = lambda self, name, value: _swig_setattr(self, fitter, name, value)
00074     __swig_getmethods__ = {}
00075     __getattr__ = lambda self, name: _swig_getattr(self, fitter, name)
00076     __repr__ = _swig_repr
00077     def __init__(self): 
00078         """__init__(self) -> fitter"""
00079         this = _fitter.new_fitter()
00080         try: self.this.append(this)
00081         except: self.this = this
00082     __swig_destroy__ = _fitter.delete_fitter
00083     __del__ = lambda self : None;
00084     def fit1d(self, *args, **kwargs):
00085         """
00086         fit1d(self, y=std::vector< double >(), x=std::vector< double >(), mask=std::vector< bool >(), 
00087             pampest=initialize_variant(""), pcenterest=initialize_variant(""), pfwhmest=initialize_variant("")) -> record *
00088 
00089         Summary
00090                 Fit any number of one dimensional Gaussians.
00091 
00092         Input Parameters:
00093                 y                The array of y values. 
00094                 x                The array of x values. If specified, must have the same length as y. If not specified, integral values from 0 to len(y)-1 are generated. 
00095                 mask             Mask array. Values are masked where this array is False. If specified, must have the same length as y. If not specified, all values are assumed True (no mask).. 
00096                 pampest          Initial estimate PCF profile amplitudes. 
00097                 pcenterest       Initial estimate PCF profile centers. 
00098                 pfwhmest         Initial estimate PCF profile FWHMs. 
00099                 
00100         --------------------------------------------------------------------------------
00101                       
00102         """
00103         return _fitter.fitter_fit1d(self, *args, **kwargs)
00104 
00105 fitter_swigregister = _fitter.fitter_swigregister
00106 fitter_swigregister(fitter)
00107 
00108 # This file is compatible with both classic and new-style classes.
00109 
00110