casacore
Static Public Member Functions | Static Private Member Functions | List of all members
casacore::LatticeHistSpecialize Class Reference

More...

#include <LatticeHistSpecialize.h>

Static Public Member Functions

template<class T >
static void makeCumulative (Vector< T > &counts, T &yMax, uInt nBins, typename NumericTraits< T >::BaseType scale)
 Make historgam cumulative. More...
 
static void makeCumulative (Vector< Complex > &counts, Complex &yMax, uInt nBins, Float scale)
 
template<class T >
static void makeLogarithmic (Vector< T > &counts, T &yMax, uInt nBins)
 Make histogram logarithmic. More...
 
static void makeLogarithmic (Vector< Complex > &counts, Complex &yMax, uInt nBins)
 
static Float mul (Float v1, Float v2)
 Multiply. More...
 
static Complex mul (Complex v1, Complex v2)
 
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. More...
 
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)
 
template<class T >
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. More...
 
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 Float setBinWidth (Float dmin, Float dmax, uInt nBins)
 Set bin width. More...
 
static Complex setBinWidth (Complex dmin, Complex dmax, uInt nBins)
 

Static Private Member Functions

static uInt bin (Float datum, Float min, Float width, uInt nBins)
 
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 plotHist (const Vector< Float > &x, const Vector< Float > &y, PGPlotter &plotter)
 

Detailed Description

Specialized functions for LatticeHistograms

Intended use:

Public interface

Review Status

Date Reviewed:
yyyy/mm/dd

Prerequisite

Etymology

Specialized code is type specific. This code is for LatticeHistograms.

Synopsis

This class provides specialized static functions to handle Type dependent (Float, Complex) processing for LatticeHistograms. I couldn't do it all with templated functions.

Motivation

Definition at line 70 of file LatticeHistSpecialize.h.

Member Function Documentation

◆ bin()

static uInt casacore::LatticeHistSpecialize::bin ( Float  datum,
Float  min,
Float  width,
uInt  nBins 
)
staticprivate

◆ makeCumulative() [1/2]

static void casacore::LatticeHistSpecialize::makeCumulative ( Vector< Complex > &  counts,
Complex &  yMax,
uInt  nBins,
Float  scale 
)
static

◆ makeCumulative() [2/2]

template<class T >
static void casacore::LatticeHistSpecialize::makeCumulative ( Vector< T > &  counts,
T &  yMax,
uInt  nBins,
typename NumericTraits< T >::BaseType  scale 
)
static

Make historgam cumulative.

◆ makeGauss()

static void casacore::LatticeHistSpecialize::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 
)
staticprivate

◆ makeLogarithmic() [1/2]

static void casacore::LatticeHistSpecialize::makeLogarithmic ( Vector< Complex > &  counts,
Complex &  yMax,
uInt  nBins 
)
static

◆ makeLogarithmic() [2/2]

template<class T >
static void casacore::LatticeHistSpecialize::makeLogarithmic ( Vector< T > &  counts,
T &  yMax,
uInt  nBins 
)
static

Make histogram logarithmic.

◆ mul() [1/2]

static Complex casacore::LatticeHistSpecialize::mul ( Complex  v1,
Complex  v2 
)
static

◆ mul() [2/2]

static Float casacore::LatticeHistSpecialize::mul ( Float  v1,
Float  v2 
)
static

Multiply.

Real and imaginary treated as independent C1*C2 = (r1*r2,i1*i2)

◆ plot() [1/2]

static void casacore::LatticeHistSpecialize::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

◆ plot() [2/2]

static void casacore::LatticeHistSpecialize::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 
)
static

Plot histograms.

◆ plotHist()

static void casacore::LatticeHistSpecialize::plotHist ( const Vector< Float > &  x,
const Vector< Float > &  y,
PGPlotter plotter 
)
staticprivate

◆ process() [1/2]

static void casacore::LatticeHistSpecialize::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

◆ process() [2/2]

template<class T >
static void casacore::LatticeHistSpecialize::process ( const T *  pInData,
const Bool pInMask,
Block< T > *  pHist,
const Vector< T > &  clip,
binWidth,
uInt  offset,
uInt  nrval,
uInt  nBins,
uInt  dataIncr,
uInt  maskIncr 
)
static

Process data chunk creating histogram.

◆ setBinWidth() [1/2]

static Complex casacore::LatticeHistSpecialize::setBinWidth ( Complex  dmin,
Complex  dmax,
uInt  nBins 
)
static

◆ setBinWidth() [2/2]

static Float casacore::LatticeHistSpecialize::setBinWidth ( Float  dmin,
Float  dmax,
uInt  nBins 
)
static

Set bin width.

For complex, real and imaginary treated separately


The documentation for this class was generated from the following file: