Go to the documentation of this file.
28 #ifndef LATTICES_LATTICEHISTSPECIALIZE_H
29 #define LATTICES_LATTICEHISTSPECIALIZE_H
32 #include <casacore/casa/aips.h>
33 #include <casacore/casa/BasicSL/Complex.h>
34 #include <casacore/scimath/Mathematics/NumericTraits.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>
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 Float mul(Float v1, Float v2)
Multiply.
static void makeLogarithmic(Vector< T > &counts, T &yMax, uInt nBins)
Make histogram logarithmic.
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 uInt bin(Float datum, Float min, Float width, uInt nBins)
static Float setBinWidth(Float dmin, Float dmax, uInt nBins)
Set bin width.
LatticeExprNode min(const LatticeExprNode &left, const LatticeExprNode &right)
this file contains all the compiler specific defines
static void makeCumulative(Vector< T > &counts, T &yMax, uInt nBins, typename NumericTraits< T >::BaseType scale)
Make historgam cumulative.
Specialized functions for LatticeHistograms.
bool Bool
Define the standard types used by Casacore.
std::complex< Float > Complex
A 1-D Specialization of the Array class.
Standard plotting object for application programmers.
static void plotHist(const Vector< Float > &x, const Vector< Float > &y, PGPlotter &plotter)
Char BaseType
Numeric type.
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.