25 double abs(std::complex<double> x);
35 std::vector<double>
movingAvg(std::vector<double> d,
int n);
36 double mean(std::vector<double> d);
44 double findmax(std::vector<double> d, std::size_t &index);
55 std::size_t
FWHM(std::vector<double> d, std::size_t index);
56 double newton_root(std::function<
double(
double)> f, std::function<
double(
double)> df,
double x0=0,
double eps=std::numeric_limits<double>::min());
61 std::string
tl(std::string);
double abs(std::complex< double > x)
absolute value of the complex valued variable x
std::size_t FWHM(std::vector< double > d, std::size_t index)
estimates the full width at half maximum of a peak around at the position inside a vector The functio...
double sqr(double x)
square of x
double newton_root(std::function< double(double)> f, std::function< double(double)> df, double x0=0, double eps=std::numeric_limits< double >::min())
double mean(std::vector< double > d)
Calculates the mean of the data stored in d.
std::vector< double > movingAvg(std::vector< double > d, int n)
calculates the moving average of the data Calculates the (unweighted) moving average over the data st...
bool testnan(double x)
tests x on NaN
double findmax(std::vector< double > d, std::size_t &index)
finds maximum in data This function finds the maximal value inside a vector
std::string tl(std::string)
Converts string into lowercase This function converts all characters in a string into lower case.
This class is used for the iray class. This class is intended for internal use only....