Mantid
Loading...
Searching...
No Matches
Namespaces | Macros | Functions
Statistics.cpp File Reference
#include "MantidKernel/Statistics.h"
#include "MantidKernel/Logger.h"
#include <boost/accumulators/accumulators.hpp>
#include <boost/accumulators/statistics/max.hpp>
#include <boost/accumulators/statistics/min.hpp>
#include <boost/accumulators/statistics/stats.hpp>
#include <boost/accumulators/statistics/variance.hpp>
#include <algorithm>
#include <cfloat>
#include <cmath>
#include <sstream>

Go to the source code of this file.

Namespaces

namespace  Mantid
 Helper class which provides the Collimation Length for SANS instruments.
 
namespace  Mantid::Kernel
 

Macros

#define INSTANTIATE(TYPE)
 

Functions

template<typename TYPE >
double Mantid::Kernel::getMedian (const vector< TYPE > &data)
 There are enough special cases in determining the median where it useful to put it in a single function. More...
 
template<typename TYPE >
std::vector< double > Mantid::Kernel::getModifiedZscore (const std::vector< TYPE > &data)
 Return the modified Z score values for a dataset. More...
 
template MANTID_KERNEL_DLL std::vector< double > Mantid::Kernel::getModifiedZscore< double > (const vector< double > &, const bool)
 
template MANTID_KERNEL_DLL std::vector< double > Mantid::Kernel::getModifiedZscore< float > (const vector< float > &, const bool)
 
template MANTID_KERNEL_DLL std::vector< double > Mantid::Kernel::getModifiedZscore< int > (const vector< int > &, const bool)
 
template MANTID_KERNEL_DLL std::vector< double > Mantid::Kernel::getModifiedZscore< long > (const vector< long > &, const bool)
 
template MANTID_KERNEL_DLL std::vector< double > Mantid::Kernel::getModifiedZscore< long long > (const vector< long long > &, const bool)
 
template MANTID_KERNEL_DLL std::vector< double > Mantid::Kernel::getModifiedZscore< unsigned int > (const vector< unsigned int > &, const bool)
 
template MANTID_KERNEL_DLL std::vector< double > Mantid::Kernel::getModifiedZscore< unsigned long > (const vector< unsigned long > &, const bool)
 
template MANTID_KERNEL_DLL std::vector< double > Mantid::Kernel::getModifiedZscore< unsigned long long > (const vector< unsigned long long > &, const bool)
 
template<typename TYPE >
std::vector< double > Mantid::Kernel::getMomentsAboutMean (const std::vector< TYPE > &x, const std::vector< TYPE > &y, const int maxMoment=3)
 Return the first n-moments of the supplied data. More...
 
template<typename TYPE >
std::vector< double > Mantid::Kernel::getMomentsAboutOrigin (const std::vector< TYPE > &x, const std::vector< TYPE > &y, const int maxMoment=3)
 Return the first n-moments of the supplied data. More...
 
Statistics Mantid::Kernel::getNanStatistics ()
 Generate a Statistics object where all of the values are NaN. More...
 
Rfactor MANTID_KERNEL_DLL Mantid::Kernel::getRFactor (const std::vector< double > &obsI, const std::vector< double > &calI, const std::vector< double > &obsE)
 Return the R-factors (Rwp) of a diffraction pattern data. More...
 
template<typename TYPE >
Statistics Mantid::Kernel::getStatistics (const std::vector< TYPE > &data, const unsigned int flags=StatOptions::AllStats)
 Return a statistics object for the given data set. More...
 
template<>
DLLExport Statistics Mantid::Kernel::getStatistics< bool > (const vector< bool > &data, const unsigned int flags)
 Getting statistics of a boolean array should just give a bunch of NaNs. More...
 
template MANTID_KERNEL_DLL Statistics Mantid::Kernel::getStatistics< double > (const vector< double > &, const bool)
 
template MANTID_KERNEL_DLL Statistics Mantid::Kernel::getStatistics< float > (const vector< float > &, const bool)
 
template MANTID_KERNEL_DLL Statistics Mantid::Kernel::getStatistics< int > (const vector< int > &, const bool)
 
template MANTID_KERNEL_DLL Statistics Mantid::Kernel::getStatistics< long > (const vector< long > &, const bool)
 
template MANTID_KERNEL_DLL Statistics Mantid::Kernel::getStatistics< long long > (const vector< long long > &, const bool)
 
template<>
DLLExport Statistics Mantid::Kernel::getStatistics< string > (const vector< string > &data, const unsigned int flags)
 Getting statistics of a string array should just give a bunch of NaNs. More...
 
template MANTID_KERNEL_DLL Statistics Mantid::Kernel::getStatistics< unsigned int > (const vector< unsigned int > &, const bool)
 
template MANTID_KERNEL_DLL Statistics Mantid::Kernel::getStatistics< unsigned long > (const vector< unsigned long > &, const bool)
 
template MANTID_KERNEL_DLL Statistics Mantid::Kernel::getStatistics< unsigned long long > (const vector< unsigned long long > &, const bool)
 
template<typename TYPE >
std::vector< double > Mantid::Kernel::getWeightedZscore (const vector< TYPE > &data, const vector< TYPE > &weights)
 There are enough special cases in determining the Z score where it useful to put it in a single function. More...
 
template<typename TYPE >
std::vector< double > Mantid::Kernel::getZscore (const std::vector< TYPE > &data)
 Return the Z score values for a dataset. More...
 
template MANTID_KERNEL_DLL std::vector< double > Mantid::Kernel::getZscore< double > (const vector< double > &, const bool)
 
template MANTID_KERNEL_DLL std::vector< double > Mantid::Kernel::getZscore< float > (const vector< float > &, const bool)
 
template MANTID_KERNEL_DLL std::vector< double > Mantid::Kernel::getZscore< int > (const vector< int > &, const bool)
 
template MANTID_KERNEL_DLL std::vector< double > Mantid::Kernel::getZscore< long > (const vector< long > &, const bool)
 
template MANTID_KERNEL_DLL std::vector< double > Mantid::Kernel::getZscore< long long > (const vector< long long > &, const bool)
 
template MANTID_KERNEL_DLL std::vector< double > Mantid::Kernel::getZscore< unsigned int > (const vector< unsigned int > &, const bool)
 
template MANTID_KERNEL_DLL std::vector< double > Mantid::Kernel::getZscore< unsigned long > (const vector< unsigned long > &, const bool)
 
template MANTID_KERNEL_DLL std::vector< double > Mantid::Kernel::getZscore< unsigned long long > (const vector< unsigned long long > &, const bool)
 

Macro Definition Documentation

◆ INSTANTIATE

#define INSTANTIATE (   TYPE)
Value:
template MANTID_KERNEL_DLL Statistics getStatistics<TYPE>(const vector<TYPE> &, const unsigned int); \
template MANTID_KERNEL_DLL std::vector<double> getZscore<TYPE>(const vector<TYPE> &); \
template MANTID_KERNEL_DLL std::vector<double> getWeightedZscore<TYPE>(const vector<TYPE> &, const vector<TYPE> &); \
template MANTID_KERNEL_DLL std::vector<double> getModifiedZscore<TYPE>(const vector<TYPE> &); \
template MANTID_KERNEL_DLL std::vector<double> getMomentsAboutOrigin<TYPE>( \
const std::vector<TYPE> &x, const std::vector<TYPE> &y, const int maxMoment); \
template MANTID_KERNEL_DLL std::vector<double> getMomentsAboutMean<TYPE>( \
const std::vector<TYPE> &x, const std::vector<TYPE> &y, const int maxMoment);

Definition at line 403 of file Statistics.cpp.