casa
5.7.0-16
|
Base class for LatticeStatistics class. More...
#include <LatticeStatsBase.h>
Public Types | |
enum | StatisticsTypes { NPTS, SUM, SUMSQ, MEDIAN, MEDABSDEVMED, QUARTILE, Q1, Q3, MIN, MAX, MEAN, VARIANCE, SIGMA, RMS, FLUX, NSTATS, NACCUM } |
This enum StatisticTypes is provided for use with the LatticeStatistics<T>::setPlotting function. More... | |
Static Public Member Functions | |
static Vector< Int > | toStatisticTypes (const String &statistics, const Regex &delimiter) |
Helper function to convert a String containing a list of desired statistics to the correct Vector<Int> required for the LatticeStatistics<T>::setPlotting function. More... | |
static Vector< Int > | toStatisticTypes (const Vector< String > &statistics) |
static String | toStatisticName (StatisticsTypes type) |
Convert type to string. More... | |
static String | toStatisticName (Int type) |
static Int | toStatisticType (const String &statistic) |
Returns -1 if the statistic string is not valid. More... | |
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 on a plot. More... | |
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 iterated through. More... | |
static void | stretchMinMax (Float &min, Float &max) |
Stretch a range by 10%. More... | |
static std::set< Double > | quartileFracs () |
Base class for LatticeStatistics class.
Public interface
A simple base class for the LatticeStatistics class
This base class provides an enum
defining allowed statistics types and a helper function to convert between a String
and a Vector<Int>
describing the desired statistics to plot. The reason for having it as a base class rather than just part of LatticeStatistics is that the latter is templated, and it doesn't make much sense to invoke the static function setStatisticTypes
function with a templated type.
Definition at line 76 of file LatticeStatsBase.h.
This enum StatisticTypes
is provided for use with the LatticeStatistics<T>::setPlotting
function.
It gives the allowed statistics types that you can ask for.
Definition at line 84 of file LatticeStatsBase.h.
|
static |
|
static |
A storage image is used to accumulate information as a function of the display axes as an image is iterated through.
This function sets the storage image shape to that appropriate to the shape of the display axes and the desired size of the first or last dimension.
Stretch a range by 10%.
|
static |
Convert type to string.
Returns -1 if the statistic string is not valid.
|
static |
Helper function to convert a String containing a list of desired statistics to the correct Vector<Int> required for the LatticeStatistics<T>::setPlotting function.
This may be usful if your user interface involves strings rather than integers. A new value is added to the output vector (which is resized appropriately) if any of the substrings "npts", "min", "max", "sum", "sumsq", "mean", "sigma", "rms", and "flux" is present. An empty vector results if there are no matches
|
static |