View source: R/kolmogorov_smirnov_distribution.R
| kolmogorov_smirnov_distribution | R Documentation |
Functions to compute the probability density function, cumulative distribution function, and quantile function for the Kolmogorov-Smirnov distribution.
kolmogorov_smirnov_distribution(n)
kolmogorov_smirnov_pdf(x, n)
kolmogorov_smirnov_lpdf(x, n)
kolmogorov_smirnov_cdf(x, n)
kolmogorov_smirnov_lcdf(x, n)
kolmogorov_smirnov_quantile(p, n)
n |
sample size (n > 0) |
x |
quantile |
p |
probability (0 <= p <= 1) |
A single numeric value with the computed probability density, log-probability density, cumulative distribution, log-cumulative distribution, or quantile depending on the function called.
Boost Documentation for more details on the mathematical background.
# Kolmogorov-Smirnov distribution with sample size n = 10
dist <- kolmogorov_smirnov_distribution(10)
# Apply generic functions
cdf(dist, 2)
logcdf(dist, 2)
pdf(dist, 2)
logpdf(dist, 2)
hazard(dist, 2)
chf(dist, 2)
mean(dist)
median(dist)
mode(dist)
range(dist)
quantile(dist, 0.2)
standard_deviation(dist)
support(dist)
variance(dist)
skewness(dist)
kurtosis(dist)
kurtosis_excess(dist)
# Convenience functions
kolmogorov_smirnov_pdf(0.5, 10)
kolmogorov_smirnov_lpdf(0.5, 10)
kolmogorov_smirnov_cdf(0.5, 10)
kolmogorov_smirnov_lcdf(0.5, 10)
kolmogorov_smirnov_quantile(0.5, 10)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.