casa  $Rev:20696$
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Static Public Member Functions | Static Private Member Functions
casa::LatticeHistSpecialize Class Reference

Specialized functions for LatticeHistograms. More...

#include <LatticeHistSpecialize.h>

List of all members.

Static Public Member Functions

static void makeCumulative (Vector< Float > &counts, Float &yMax, uInt nBins, Float scale)
 Make historgam cumulative.
static void makeCumulative (Vector< Complex > &counts, Complex &yMax, uInt nBins, Float scale)
static void makeLogarithmic (Vector< Float > &counts, Float &yMax, uInt nBins)
 Make histogram logarithmic.
static void makeLogarithmic (Vector< Complex > &counts, Complex &yMax, uInt nBins)
static Float mul (Float v1, Float v2)
 Multiply.
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.
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 process (const Float *pInData, const Bool *pInMask, Block< Float > *pHist, const Vector< Float > &clip, Float binWidth, uInt offset, uInt nrval, uInt nBins, uInt dataIncr, uInt maskIncr)
 Process data chunk creating histogram.
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.
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

static uInt casa::LatticeHistSpecialize::bin ( Float  datum,
Float  min,
Float  width,
uInt  nBins 
) [static, private]
static void casa::LatticeHistSpecialize::makeCumulative ( Vector< Float > &  counts,
Float yMax,
uInt  nBins,
Float  scale 
) [static]

Make historgam cumulative.

static void casa::LatticeHistSpecialize::makeCumulative ( Vector< Complex > &  counts,
Complex &  yMax,
uInt  nBins,
Float  scale 
) [static]
static void casa::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 
) [static, private]
static void casa::LatticeHistSpecialize::makeLogarithmic ( Vector< Float > &  counts,
Float yMax,
uInt  nBins 
) [static]

Make histogram logarithmic.

static void casa::LatticeHistSpecialize::makeLogarithmic ( Vector< Complex > &  counts,
Complex &  yMax,
uInt  nBins 
) [static]
static Float casa::LatticeHistSpecialize::mul ( Float  v1,
Float  v2 
) [static]

Multiply.

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

static Complex casa::LatticeHistSpecialize::mul ( Complex  v1,
Complex  v2 
) [static]
static void casa::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.

static void casa::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]
static void casa::LatticeHistSpecialize::plotHist ( const Vector< Float > &  x,
const Vector< Float > &  y,
PGPlotter plotter 
) [static, private]
static void casa::LatticeHistSpecialize::process ( const Float pInData,
const Bool pInMask,
Block< Float > *  pHist,
const Vector< Float > &  clip,
Float  binWidth,
uInt  offset,
uInt  nrval,
uInt  nBins,
uInt  dataIncr,
uInt  maskIncr 
) [static]

Process data chunk creating histogram.

static void casa::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]
static Float casa::LatticeHistSpecialize::setBinWidth ( Float  dmin,
Float  dmax,
uInt  nBins 
) [static]

Set bin width.

For complex, real and imaginary treated separately

static Complex casa::LatticeHistSpecialize::setBinWidth ( Complex  dmin,
Complex  dmax,
uInt  nBins 
) [static]

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