Ignore:
Timestamp:
02/17/05 14:46:17 (19 years ago)
Author:
mar637
Message:

Added SDFitTable to handle fits and expose them to python vi the sdfit class.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/SDContainer.h

    r453 r465  
    261261};
    262262
    263 class SDFitTable {
    264 public:
    265   // Create a FitTable with "n" rows
    266   SDFitTable(casa::uInt n=0) : n_(n) {;};
    267  
    268   casa::uInt length() const { return n_; };
    269   const casa::Vector<casa::Double>& getFitParameters(casa::uInt which) const;
    270   const casa::Vector<casa::Bool>& getFitParameterMask(casa::uInt which) const;
    271   const casa::Vector<casa::String>& getFitFunctions(casa::uInt which) const;
    272   const casa::Vector<casa::Int>& getFitComponents(casa::uInt which) const;
    273 
    274   void putFitParameters(casa::uInt whichRow,
    275                         const casa::Vector<casa::Double>& arr);
    276   void putFitParameterMask(casa::uInt whichRow,
    277                            const casa::Vector<casa::Bool>& arr);
    278   void putFitFunctions(casa::uInt whichRow,
    279                        const casa::Vector<casa::String>& arr);
    280   void putFitComponents(casa::uInt whichRow,
    281                         const casa::Vector<casa::Int>& arr);
    282 
    283 private:
    284  
    285   casa::uInt n_;
    286   casa::Vector<casa::Vector<casa::Double> > fitParms_;
    287   // (npars,nrows)
    288   casa::Vector<casa::Vector<casa::Bool> > parMask_;
    289   // the fit function names (nnames,nrows)
    290   casa::Vector<casa::Vector<casa::String> > fitFuncs_;
    291   // the number of components of the function (ncomps, nrows)
    292   casa::Vector<casa::Vector<casa::Int> > fitComps_;
    293 
    294 };
    295263
    296264} // namespace
Note: See TracChangeset for help on using the changeset viewer.