Distribution
Represent a univariate probability distribution and related noise model.
Declaration
classdef (Abstract) DistributionOverview
Distribution is the abstract base class for a univariate
probability distribution
with density \(p(z)\) and cumulative distribution
\(F(z) = \int_{-\infty}^{z} p(\zeta)\,\mathrm{d}\zeta.\) Subclasses
provide those distribution functions, and this base class adds
percentile inversion, range-limited second-moment integrals, random
sampling, correlated-noise generation, and goodness-of-fit
diagnostics.
The method locationOfCDFPercentile returns \(z_{\alpha}\) satisfying
\(F(z_{\alpha}) = \alpha.\) The method varianceInRange evaluates
\(\int_{z_{\min}}^{z_{\max}} z^{2} p(z)\,\mathrm{d}z,\) which
coincides with the variance contribution on that interval for
centered distributions. The Anderson-Darling and Kolmogorov-Smirnov
methods compare the empirical distribution of a sample against the
theoretical CDF \(F(z)\) through standard AD and KS statistics.
Topics
- Inspect distribution properties
cdfCumulative distribution function \(F(z)\).distributionFromFileInitialize a persisted distribution from a NetCDF file.distributionFromGroupInitialize a persisted distribution from a NetCDF group.locationOfCDFPercentileFind the location of a CDF percentile.logPDFLogarithm of the probability density \(\log p(z)\).pdfProbability density function \(p(z)\).sigma0Initialization scale \(\sigma_0\) satisfying \(w(\sigma_0) = \sigma_0^2\).varianceTotal variance.varianceInPercentileRangeCompute the second moment between two CDF percentiles.varianceInRangeCompute the range-limited second moment of the distribution.wWeight function \(w(z)\) for residual-based reweighting.writeToFileWrite this distribution to a NetCDF file.zrangeSupport interval \([z_{\min}, z_{\max}]\) for the distribution.
- Sample from distributions
randDraw random samples from the distribution.
- Evaluate distribution fit
andersonDarlingErrorCompute the Anderson-Darling fit statistic for a sample.andersonDarlingInterquartileErrorCompute an interquartile Anderson-Darling fit statistic.kolmogorovSmirnovErrorCompute the Kolmogorov-Smirnov fit statistic for a sample.kolmogorovSmirnovInterquartileErrorCompute an interquartile Kolmogorov-Smirnov fit statistic.
- Model correlated noise
- Developer
classDefinedPropertyAnnotationsreturn array of WVPropertyAnnotation initialized by default
- Other