28 #ifndef LATTICES_LATTICEHISTSPECIALIZE_H
29 #define LATTICES_LATTICEHISTSPECIALIZE_H
32 #include <casacore/casa/aips.h>
33 #include <casacore/casa/Arrays/ArrayFwd.h>
34 #include <casacore/casa/BasicSL/Complex.h>
35 #include <casacore/scimath/Mathematics/NumericTraits.h>
36 #include <casacore/casa/Containers/Block.h>
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 void process(const Complex *pInData, const Bool *pInMask, Block< Complex > *pHist, const Vector< Complex > &clip, Complex binWidth, uInt offset, uInt nrval, uInt nBins, uInt dataIncr, uInt maskIncr)
static void makeCumulative(Vector< Complex > &counts, Complex &yMax, uInt nBins, Float scale)
static Complex setBinWidth(Complex dmin, Complex dmax, uInt nBins)
static void makeCumulative(Vector< T > &counts, T &yMax, uInt nBins, typename NumericTraits< T >::BaseType scale)
Make historgam cumulative.
static void makeLogarithmic(Vector< Complex > &counts, Complex &yMax, uInt nBins)
static Complex mul(Complex v1, Complex v2)
static Float setBinWidth(Float dmin, Float dmax, uInt nBins)
Set bin width.
static Float mul(Float v1, Float v2)
Multiply.
static void makeLogarithmic(Vector< T > &counts, T &yMax, uInt nBins)
Make histogram logarithmic.
static void plotHist(const Vector< Float > &x, const Vector< Float > &y, PGPlotter &plotter)
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.
static uInt bin(Float datum, Float min, Float width, uInt nBins)
static void plot(PGPlotter &plot, Bool doGauss, Bool doCumu, Bool doLog, Complex linearSum, Complex yMax, Complex binWidth, const Vector< Complex > &values, const Vector< Complex > &counts, const Vector< Complex > &stats, uInt whereLabel, uInt ci, Bool page)
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)
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.
Char BaseType
Numeric type.
std::complex< Float > Complex
this file contains all the compiler specific defines
LatticeExprNode min(const LatticeExprNode &left, const LatticeExprNode &right)
bool Bool
Define the standard types used by Casacore.