24 #ifndef SKA_CHEETAH_DATA_POWERSERIES_H 25 #define SKA_CHEETAH_DATA_POWERSERIES_H 27 #include "cheetah/data/FrequencySeries.h" 28 #pragma GCC diagnostic push 29 #pragma GCC diagnostic ignored "-Wall" 30 #pragma GCC diagnostic ignored "-Wpragmas" 31 #pragma GCC diagnostic ignored "-Wunused-parameter" 32 #pragma GCC diagnostic ignored "-Wunused-variable" 33 #include <boost/math/distributions/chi_squared.hpp> 34 #include <boost/math/distributions/normal.hpp> 35 #pragma GCC diagnostic pop 57 template <typename Arch, typename ValueType, typename Alloc=typename DefaultAllocator<Arch,ValueType>::type>
60 ,
public panda::DataChunk<PowerSeries<Arch, ValueType, Alloc>>
66 typedef Alloc Allocator;
69 typedef boost::math::chi_squared_distribution<double> ChiSquaredType;
70 typedef boost::math::normal_distribution<double> GaussianType;
76 PowerSeries(std::size_t
size=0, Allocator
const& allocator = Allocator());
86 , std::size_t=0, Allocator
const& allocator=Allocator());
114 double pvalue(
float power)
const;
136 ChiSquaredType _distribution;
137 GaussianType _gaussian;
145 #include "cheetah/data/detail/PowerSeries.cpp" 147 #endif // SKA_CHEETAH_DATA_POWERSERIES_H float power_to_equiv_sigma(float power) const
For a given power level compute the Gaussian equivalent sigma.
PowerSeries(std::size_t size=0, Allocator const &allocator=Allocator())
Create a new default PowerSeries instance.
A container of Fourier series data.
Some limits and constants for FLDO.
Class for power series (detected FrequencySeries).
float equiv_sigma_to_power(float sigma) const
Compute the power that corresponds to a Gaussian equivalent sigma.
double pvalue(float power) const
Return the statistical probability of a given power level occurring.
std::size_t size() const
the size of the series
double degrees_of_freedom() const
Retreive the (assumed) degrees of freedom of the data distribution.