//#--------------------------------------------------------------------------- //# SDFitTable.h: A wrapper for fit parameters //#--------------------------------------------------------------------------- //# Copyright (C) 2004 //# ATNF //# //# This program is free software; you can redistribute it and/or modify it //# under the terms of the GNU General Public License as published by the Free //# Software Foundation; either version 2 of the License, or (at your option) //# any later version. //# //# This program is distributed in the hope that it will be useful, but //# WITHOUT ANY WARRANTY; without even the implied warranty of //# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General //# Public License for more details. //# //# You should have received a copy of the GNU General Public License along //# with this program; if not, write to the Free Software Foundation, Inc., //# 675 Massachusetts Ave, Cambridge, MA 02139, USA. //# //# Correspondence concerning this software should be addressed as follows: //# Internet email: Malte.Marquarding@csiro.au //# Postal address: Malte Marquarding, //# Australia Telescope National Facility, //# P.O. Box 76, //# Epping, NSW, 2121, //# AUSTRALIA //# //# $Id: //#--------------------------------------------------------------------------- #ifndef SDFITTABLE_H #define SDFITTABLE_H #include #include #include #include #include namespace asap { class SDFitTable { public: SDFitTable() : nfits_(0) {;}; ~SDFitTable() {;}; SDFitTable(const SDFitTable& other); void addFit(const casa::Vector& p, const casa::Vector& m, const casa::Vector& f, const casa::Vector& c, const casa::Vector& fi); void addSTLFit(const std::vector& p, const std::vector& m, const std::vector& f, const std::vector& c, const std::vector& fi); int STLlength() const { return nfits_; }; casa::uInt length() const { return casa::uInt(nfits_); }; std::vector getSTLParameters(int which) const; std::vector getSTLParameterMask(int which) const; std::vector getSTLFunctions(int which) const; std::vector getSTLComponents(int which) const; std::vector getSTLFrameInfo(int which) const; casa::Vector getParameters(casa::uInt which) const; casa::Vector getParameterMask(casa::uInt which) const; casa::Vector getFunctions(casa::uInt which) const; casa::Vector getComponents(casa::uInt which) const; casa::Vector getFrameInfo(casa::uInt which) const; private: int nfits_; std::vector > pars_; std::vector > mask_; std::vector > funcs_; std::vector > comps_; std::vector > frameinfo_; }; }// #endif