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
xis 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.toy.ToyLogPDF.- 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.
- sample(n_samples)[source]¶
See
ToyLogPDF.sample().