RandLib 2.0.0
Probability distributions, fitting, and heavy-tail tools for C++20
Loading...
Searching...
No Matches
gof.hpp File Reference
#include <randlib/continuous/gamma.hpp>
#include <randlib/continuous/kolmogorov_smirnov.hpp>
#include <randlib/math/special_functions.hpp>
#include <algorithm>
#include <cmath>
#include <concepts>
#include <limits>
#include <map>
#include <numbers>
#include <ranges>
#include <span>
#include <stdexcept>
#include <type_traits>
#include <vector>
Include dependency graph for gof.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  randlib::ContinuousGoodnessOfFit
 
struct  randlib::DiscreteGoodnessOfFit
 
struct  randlib::detail::ChiSquaredBin
 

Namespaces

namespace  randlib
 
namespace  randlib::detail
 

Functions

double randlib::detail::andersonDarlingCdf (double statistic)
 
double randlib::detail::cvmCdfInfinite (double statistic)
 
double randlib::detail::cvmEd2 (double value)
 
double randlib::detail::cvmEd3 (double value)
 
double randlib::detail::cvmCorrectionTerm (int k, double statistic)
 
double randlib::detail::cvmCdf (double statistic, std::size_t sampleSize)
 
void randlib::detail::mergeSparseBins (std::vector< ChiSquaredBin > &bins)
 
template<class Distribution >
requires std::floating_point<typename Distribution::value_type>
ContinuousGoodnessOfFit randlib::goodness_of_fit (const Distribution &distribution, std::span< const typename Distribution::value_type > sample)
 
template<class Distribution >
requires std::integral<typename Distribution::value_type>
DiscreteGoodnessOfFit randlib::goodness_of_fit (const Distribution &distribution, std::span< const typename Distribution::value_type > sample, int estimatedParameters=0)
 
template<class Distribution , std::ranges::contiguous_range Range>
requires std::same_as<std::remove_cv_t<std::ranges::range_value_t<Range>>, typename Distribution::value_type>
auto randlib::goodness_of_fit (const Distribution &distribution, const Range &sample)
 
template<class Distribution , std::ranges::contiguous_range Range>
requires std::integral<typename Distribution::value_type> && std::same_as<std::remove_cv_t<std::ranges::range_value_t<Range>>, typename Distribution::value_type>
DiscreteGoodnessOfFit randlib::goodness_of_fit (const Distribution &distribution, const Range &sample, int estimatedParameters)