Cone Distribution¶
- class pints.toy.ConeLogPDF(dimensions=2, beta=1)[source]¶
Toy distribution based on a d-dimensional distribution of the form,
\[f(x) \propto e^{-|x|^\beta}\]where
x
is a d-dimensional real, and|x|
is the Euclidean norm. The mean and variance that are returned relate to expectations on|x|
not the multidimensionalx
.Extends
pints.LogPDF
.- Parameters:
dimensions (int) – The dimensionality of the cone.
beta (float) – The power to which
|x|
is raised in the exponential term, which must be positive.
- 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()
.
- sample(n_samples)[source]¶
See
ToyLogPDF.sample()
.