28 #ifndef LATTICES_LATTICEHISTSPECIALIZE_H
29 #define LATTICES_LATTICEHISTSPECIALIZE_H
107 template <
class T>
static void process(
108 const T* pInData,
const Bool* pInMask,
110 T binWidth,
uInt offset,
uInt nrval,
144 #ifndef CASACORE_NO_AUTO_TEMPLATES
145 #include <casacore/lattices/LatticeMath/LatticeHistSpecialize2.tcc>
static uInt bin(Float datum, Float min, Float width, uInt nBins)
static Float mul(Float v1, Float v2)
Multiply.
static void process(const T *pInData, const Bool *pInMask, Block< T > *pHist, const Vector< T > &clip, T binWidth, uInt offset, uInt nrval, uInt nBins, uInt dataIncr, uInt maskIncr)
Process data chunk creating histogram.
static void plot(PGPlotter &plot, Bool doGauss, Bool doCumu, Bool doLog, Float linearSum, Float yMax, Float binWidth, const Vector< Float > &values, const Vector< Float > &counts, const Vector< Float > &stats, uInt whereLabel, uInt ci, Bool page)
Plot histograms.
std::complex< Float > Complex
static void makeCumulative(Vector< T > &counts, T &yMax, uInt nBins, typename NumericTraits< T >::BaseType scale)
Make historgam cumulative.
static void makeGauss(uInt &nGPts, Float &gMax, Vector< Float > &gX, Vector< Float > &gY, Float dMean, Float dSigma, Float dSum, Float xMin, Float xMax, Float binWidth, Bool doCumu, Bool doLog)
LatticeExprNode min(const LatticeExprNode &left, const LatticeExprNode &right)
Specialized functions for LatticeHistograms.
bool Bool
Define the standard types used by Casacore.
static Float setBinWidth(Float dmin, Float dmax, uInt nBins)
Set bin width.
static void makeLogarithmic(Vector< T > &counts, T &yMax, uInt nBins)
Make histogram logarithmic.
Standard plotting object for application programmers.
Char BaseType
Numeric type.
static void plotHist(const Vector< Float > &x, const Vector< Float > &y, PGPlotter &plotter)