28 #ifndef LATTICES_LATTICEHISTSPECIALIZE_H
29 #define LATTICES_LATTICEHISTSPECIALIZE_H
39 template <
class T>
class Vector;
40 template <
class T>
class Block;
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>
A 1-D Specialization of the Array class.
static uInt bin(Float datum, Float min, Float width, uInt nBins)
std::vector< double > Vector
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.
ABSTRACT CLASSES Deliberately vague to be general enough to allow for many different types of but is it too vague to be useful Since the interface is meant to be a simple plotter
Char BaseType
Numeric type.
static void plotHist(const Vector< Float > &x, const Vector< Float > &y, PGPlotter &plotter)
#define casacore
<X11/Intrinsic.h> #defines true, false, casacore::Bool, and String.