nk 1.0.0
C++ Numerical Computing Runtime
Loading...
Searching...
No Matches
#include <memory_resource>
#include <nk/value/value.hpp>
#include <tuple>

Go to the source code of this file.

Functions

Value nk::stats::betapdf (const Value &x, double a, double b, std::pmr::memory_resource *mr=nullptr)
 Beta pdf (y = betapdf(x, a, b)).
Value nk::stats::betacdf (const Value &x, double a, double b, std::pmr::memory_resource *mr=nullptr)
 Beta cdf (p = betacdf(x, a, b)).
Value nk::stats::betainv (const Value &p, double a, double b, std::pmr::memory_resource *mr=nullptr)
 Beta inverse cdf (x = betainv(p, a, b)).
Value nk::stats::betarnd (::nk::ops::RngContext &rng, double a, double b, size_t rows=1, size_t cols=1, std::pmr::memory_resource *mr=nullptr)
 Beta random samples (r = betarnd(a, b, rows, cols)).
std::tuple< double, double > nk::stats::betastat (double a, double b)
 Beta mean and variance ([m, v] = betastat(a, b)).
Value nk::stats::betafit (const Value &x, std::pmr::memory_resource *mr=nullptr)
 Beta(a, b) MLE fit ([ahat, bhat] = betafit(x)).
Value nk::stats::betafit_ci (const Value &x, double alpha=0.05, std::pmr::memory_resource *mr=nullptr)
 95% Wald CI for betafit (pci = betafit_ci(x, alpha)).