Vi2ChunkStatisticsIteratee.h

Go to the documentation of this file.
00001 // -*- mode: c++ -*-
00002 #ifndef VI2_CHUNK_STATISTICS_ITERATEE_H_
00003 #define VI2_CHUNK_STATISTICS_ITERATEE_H_
00004 
00005 #include <msvis/MSVis/VisBuffer2.h>
00006 #include <casacore/scimath/Mathematics/StatisticsAlgorithm.h>
00007 
00008 namespace casa {
00009 
00010 // This class is used to encapsulate the action(s) taken on a sequence of
00011 // StatisticsAlgorithm instances that are generated by the
00012 // Vi2ChunkDataProvider::foreachChunk() method, which can be used to compute
00013 // statistics for each MS chunk provided by a VisibilityIterator2 instance. See
00014 // the Vi2ChunkDataProvider.h file for an outline of how this class may be used.
00015 
00016 template <class DataIterator, class WeightsIterator, class MaskIterator>
00017 class Vi2ChunkStatisticsIteratee {
00018 
00019         typedef typename DataIterator::AccumType AccumType;
00020 
00021 public:
00022 
00023         // This method will be called by Vi2ChunkDataProvider::foreachChunk() for
00024         // each chunk provided by a VisibilityIterator2 instance, with the
00025         // StatisticsAlgorithm instance initialized with a data provider for the
00026         // chunk. The pointer to the VisBuffer2 instance is provided in case this
00027         // method needs to get some metadata for the current chunk.
00028         virtual void nextChunk(
00029                 StatisticsAlgorithm<AccumType,DataIterator,MaskIterator,WeightsIterator> &stats,
00030                 const vi::VisBuffer2 *vb) = 0;
00031 };
00032 
00033 } // namespace casa
00034 
00035 #endif // VI2_CHUNK_STATISTICS_ITERATEE_H_
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated on 31 Aug 2016 for casa by  doxygen 1.6.1