28 #ifndef LATTICES_LATTICESTATSBASE_H
29 #define LATTICES_LATTICESTATSBASE_H
31 #include <casacore/casa/aips.h>
32 #include <casacore/casa/Arrays/Vector.h>
33 #include <casacore/casa/BasicSL/String.h>
static std::set< Double > quartileFracs()
static Vector< Int > toStatisticTypes(const String &statistics, const std::regex &delimiter)
Helper function to convert a String containing a list of desired statistics to the correct Vector<Int...
static Vector< Int > toStatisticTypes(const Vector< String > &statistics)
static String toStatisticName(Int type)
static String toStatisticName(StatisticsTypes type)
Convert type to string.
static void stretchMinMax(Float &min, Float &max)
Stretch a range by 10%.
static Int toStatisticType(const String &statistic)
Returns -1 if the statistic string is not valid.
StatisticsTypes
This enum StatisticTypes is provided for use with the LatticeStatistics<T>::setPlotting function.
@ QUARTILE
inter-quartile range
@ NPTS
The number of points.
@ NSTATS
The total number of available statistics to plot.
@ NACCUM
The total number of accumulation image items (not for general use: note that the accumulation items M...
@ VARIANCE
The variance about the mean.
@ Q1
The first and third quartiles.
@ MEDIAN
The median - the robust stats does not fit well into storage lattice approach.
@ SIGMA
The standard deviation about the mean.
@ FLUX
The flux density (can't always compute this - needs the beam)
@ MEDABSDEVMED
median of absolute deviation from median
static Bool setNxy(Vector< Int > &nxy, ostream &os)
Check and fill in defaults for a Vector<Int> containing the number of subplots in x and y to be put o...
static void setStorageImageShape(IPosition &storeImageShape, const Bool &last, const Int &axisSize, const Vector< Int > &displayAxes, const IPosition &shape)
A storage image is used to accumulate information as a function of the display axes as an image is it...
String: the storage and methods of handling collections of characters.
this file contains all the compiler specific defines
LatticeExprNode max(const LatticeExprNode &left, const LatticeExprNode &right)
LatticeExprNode min(const LatticeExprNode &left, const LatticeExprNode &right)
TableExprNode shape(const TableExprNode &array)
Function operating on any scalar or array resulting in a Double array containing the shape.
TableExprNode regex(const TableExprNode &node)
Functions for regular expression matching and pattern matching.
bool Bool
Define the standard types used by Casacore.