Annulus Distribution¶
- class pints.toy.AnnulusLogPDF(dimensions=2, r0=10, sigma=1)[source]¶
Toy distribution based on a d-dimensional distribution of the form
\[f(x|r_0, \sigma) \propto e^{-(|x|-r_0)^2 / {2\sigma^2}}\]where \(x\) is a d-dimensional real, and \(|x|\) is the Euclidean norm.
This distribution is roughly a one-dimensional Gaussian distribution centred on \(r0\), that is smeared over the surface of a hypersphere of the same radius. In two dimensions, the density looks like a circular annulus.
Extends
pints.LogPDF
.- Parameters:
dimensions (int) – The dimensionality of the space.
r0 (float) – The radius of the hypersphere and is approximately the mean normed distance from the origin.
sigma (float) – The width of the annulus; approximately the standard deviation of normed distance.
- distance(samples)[source]¶
Calculates a measure of normed distance of samples from exact mean and covariance matrix assuming uniform prior with bounds given by
suggested_bounds()
.See
ToyLogPDF.distance()
.
- sample(n_samples)[source]¶
See
ToyLogPDF.sample()
.