#include <synthesis/MeasurementComponents/BPoly.h>
#include <synthesis/MeasurementComponents/MSMetaInfoForCal.h>
#include <synthesis/MeasurementEquations/VisEquation.h>
#include <casa/Logging/LogIO.h>
#include <casa/Utilities/Assert.h>
#include <casa/Exceptions/Error.h>
#include <casa/Arrays/ArrayMath.h>
#include <casa/Arrays/ArrayLogical.h>
#include <ms/MSOper/MSMetaData.h>
#include <ms/MeasurementSets/MSColumns.h>
#include <msvis/MSVis/VisBuffAccumulator.h>
#include <msvis/MSVis/VisBuffGroupAcc.h>
#include <casa/sstream.h>
#include <casa/OS/Memory.h>
#include <casa/System/PGPlotter.h>
#include <synthesis/CalTables/BJonesMBuf.h>
#include <synthesis/CalTables/BJonesMCol.h>
#include <synthesis/CalTables/NewCalTable.h>
#include <ms/MSSel/MSSpWindowIndex.h>
using namespace casacore;
#if defined(NEED_UNDERSCORES)
#define splinant splinant_
#define phaseant phaseant_
#define ampliant ampliant_
void polyant(Int*, Int*, Int*, Int*, Int*, Int*, Int*, Int*,
Double*, Double*, Double*, Double*, Double*, Double*,
void splinant(Int*, Int*, Int*, Int*, Int*, Int*, Int*, Int*,
Double*, Double*, Double*, Double*, Double*, Double*,
Double*, Double*, Double* );
void getbspl(Int*, Double*, Double*, Double*, Double*, Int*);
void phaseant(Int*, Int*, Int*, Int*, Double*, Double*, Double*, Double*,
void ampliant(Int*, Int*, Int*, Int*, Double*, Double*, Double*, Double*,
void cheb(Int*, Double*, Double*, Int*);
BJonesPoly::BJonesPoly (VisSet& vs) :