Project
Loading...
Searching...
No Matches
fit.h File Reference
#include <cmath>
#include <numeric>
#include <algorithm>
#include <vector>
#include <array>
#include "Rtypes.h"
#include "TLinearFitter.h"
#include "TVectorD.h"
#include "TMath.h"
#include "TF1.h"
#include "Foption.h"
#include "HFitInterface.h"
#include "TFitResultPtr.h"
#include "TFitResult.h"
#include "Fit/Fitter.h"
#include "Fit/BinData.h"
#include "Math/WrappedMultiTF1.h"
#include <Math/SMatrix.h>
#include <Math/SVector.h>
#include "Framework/Logger.h"

Go to the source code of this file.

Classes

struct  o2::math_utils::StatisticsData
 

Namespaces

namespace  o2
 a couple of static helper functions to create timestamp values for CCDB queries or override obsolete objects
 
namespace  o2::math_utils
 

Functions

template<typename T >
TFitResultPtr o2::math_utils::fit (const size_t nBins, const T *arr, const T xMin, const T xMax, TF1 &func, std::string_view option="")
 
template<typename T >
bool o2::math_utils::medmadGaus (size_t nBins, const T *arr, const T xMin, const T xMax, std::array< double, 3 > &param)
 
template<typename T >
Double_t o2::math_utils::fitGaus (const size_t nBins, const T *arr, const T xMin, const T xMax, std::vector< T > &param)
 
template<typename T >
double o2::math_utils::fitGaus (size_t nBins, const T *arr, const T xMin, const T xMax, std::array< double, 3 > &param, ROOT::Math::SMatrix< double, 3, 3, ROOT::Math::MatRepSym< double, 3 > > *covMat=nullptr, int minVal=2, bool applyMAD=true)
 
template<typename T >
StatisticsData o2::math_utils::getStatisticsData (const T *arr, const size_t nBins, const double xMin, const double xMax)
 
template<typename T , typename R = double>
R o2::math_utils::median (std::vector< T > v)
 
template<typename T >
void o2::math_utils::SortData (std::vector< T > const &values, std::vector< size_t > &index)
 
template<typename T >
bool o2::math_utils::LTMUnbinned (const std::vector< T > &data, std::vector< size_t > &index, std::array< float, 7 > &params, float fracKeep)
 
template<typename T >
void o2::math_utils::Reorder (std::vector< T > &data, const std::vector< size_t > &index)
 
template<typename T >
bool o2::math_utils::LTMUnbinnedSig (const std::vector< T > &data, std::vector< size_t > &index, std::array< float, 7 > &params, float fracKeepMin, float sigTgt, bool sorted=false)
 
template<typename T >
o2::math_utils::selKthMin (int k, int np, T *arr)
 
template<typename T >
o2::math_utils::MAD2Sigma (int np, T *y)