38 #define _USE_MATH_DEFINES
267 template <
typename T>
class ARG {};
275 template <
typename T>
class OUT {
290 const AXIS& eAxisIterUser );
402 template <
typename T>
410 template <
typename T>
418 template <
typename T>
422 template <
typename T>
424 if (
this != &oOut ) {
472 template <
typename T>
510 oOut.oT = statsWrap<T>( oAbs, oValue, oValueErr, oFlag, oArg );
A Vector of integers, for indexing into Array<T> objects.
static casacore::String axisName(const AXIS &eAxis)
The axis names.
AXES & operator=(const AXES &oAxes)
LatticeExprNode log(const LatticeExprNode &expr)
Start of CalStats class definition
Statistics OUT nested class (allowed T: CalStats::NONE, CalStatsFitter::FIT, or CalStatsHist::HIST), used to hold the output of statsWrap<T>().
casacore::Cube< casacore::Double > * poValueErr
size_t nelements() const
How many elements does this array have? Product of all axis lengths.
casacore::Vector< casacore::Double > axisNonIter(void) const
CalStats & operator=(const CalStats &oCalStats)
casacore::IPosition oAxisIterID
The axis IDs.
casacore::Cube< casacore::Bool > & flag(void) const
CalStatsFitter::ORDER eOrder
casacore::Vector< casacore::Double > oAbs
casacore::Cube< casacore::Double > & value(void) const
casacore::Input data states
Statistics ARG nested class (allowed T: CalStats::NONE, CalStatsFitter::FIT, or CalStatsHist::HIST), used as an input to stats<T>() and statsWrap<T>().
T statsWrap(const casacore::Vector< casacore::Double > &oAbs, const casacore::Vector< casacore::Double > &oValue, const casacore::Vector< casacore::Double > &oValueErr, casacore::Vector< casacore::Bool > &oFlag, const ARG< T > &oArg)
A 2-D Specialization of the Array class.
ostream-like interface to creating log messages.
Change the message priority to WARN.
casacore::Vector< casacore::Double > oAxisNonIter
Array< T > copy(ArrayInitPolicy policy=ArrayInitPolicies::NO_INIT) const
This makes a copy of the array and returns it.
const String & getMesg() const
casacore::Vector< casacore::String > axisIterFeed(void) const
Axis value states.
virtual ~CalStats(void)
Destructor.
casacore::ArrayIterator< casacore::Bool > * poFlagIter
CalStats(void)
Unused constructor.
casacore::Vector< casacore::Double > oValueErr
Bool pastEnd() const
Returns true if the cursor has moved past the end of its volume.
casacore::ArrayIterator< casacore::Double > * poValueErrIter
casacore::IPosition statsShape(void) const
Output statistics cube shape state.
virtual void next()
Move the cursor to the next position.
casacore::ArrayIterator< casacore::Double > * poValueIter
casacore::Input parameter cube iterators
void removeDegenerate(uInt startingAxis=0, Bool throwIfError=True)
Remove degenerate axes from this Array object.
void next(void)
Simultaneously increment and reset all input parameter cube iterators.
casacore::Cube< casacore::Double > & valueErr(void) const
casacore::Cube< casacore::Double > * poValue
Internal copies of input parameter cubes.
OUT(void)
End of ARG<T> specialized class templates
casacore::Vector< casacore::Double > oAxisIterUser
template <class T, class U> class vector;
CalStatsFitter::TYPE eType
casacore::Vector< casacore::String > oAxisIterFeed
Internal copies of the iteration and non-iteration axis values.
Post the accumulated message.
casacore::Cube< casacore::Bool > * poFlag
casacore::Matrix< OUT< T > > stats(const ARG< T > &oArg)
Calculate statistics (allowed T: CalStats::NONE gets data without calculating statistics, CalStatsFitter::FIT calculates fits, and CalStatsHist::HIST calculates histogram statistics).
AXIS axisNonIterID(void) const
LogOrigin: The source code location of the originator of a LogMessage.
casacore::Vector< casacore::Double > oValue
Array< T > reform(const IPosition &shape) const
It is occasionally useful to have an array which access the same storage appear to have a different s...
Base class for all Casacore library errors.
Start of CalStatsFitter class definition
casacore::IPosition axisIterID(void) const
Axis ID states.
String: the storage and methods of handling collections of characters.
OUT & operator=(const OUT &oOut)
operator=
casacore::Vector< casacore::Bool > oFlag
DATA & operator=(const DATA &oDataIn)
Array< T > & array()
Return the cursor.
casacore::Vector< casacore::Double > axisIterUser(void) const
casacore::Double dAxisIterUser
const IPosition & pos() const
Return the position of the cursor.
casacore::IPosition oStatsShape
Shape of the output statistics cubes.
CalStatsFitter::WEIGHT eWeight