MvNormal
digraph inheritanceea6c1a6edf { bgcolor=transparent; rankdir=LR; size="8.0, 12.0"; "ABC" [fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",tooltip="Helper class that provides a standard way to create an ABC using"]; "MvNormal" [URL="#geobipy.src.classes.statistics.MvNormalDistribution.MvNormal",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="Class extension to geobipy.baseDistribution"]; "baseDistribution" -> "MvNormal" [arrowsize=0.5,style="setlinewidth(0.5)"]; "baseDistribution" [URL="baseDistribution.html#geobipy.src.classes.statistics.baseDistribution.baseDistribution",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="Define an abstract base distribution class"]; "myObject" -> "baseDistribution" [arrowsize=0.5,style="setlinewidth(0.5)"]; "myObject" [URL="../core/myObject.html#geobipy.src.classes.core.myObject.myObject",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top"]; "ABC" -> "myObject" [arrowsize=0.5,style="setlinewidth(0.5)"]; }@MvNormalDistribution Module defining a multivariate normal distribution with statistical procedures
- class geobipy.src.classes.statistics.MvNormalDistribution.MvNormal(mean, variance, ndim=None, prng=None, **kwargs)
Class extension to geobipy.baseDistribution
Handles a multivariate normal distribution. Uses Scipy to evaluate probabilities, but Numpy to generate random samples since scipy is slow.
MvNormal(mean, variance, ndim, prng)
- Parameters:
mean (scalar or array_like) – Mean(s) for each dimension
variance (scalar or array_like) – Variance for each dimension
ndim (int, optional) – The number of dimensions in the multivariate normal. Only used if mean and variance are scalars that are constant for all dimensions
prng (numpy.random.RandomState, optional) – A random state to generate random numbers. Required for parallel instantiation.
- Returns:
out – Multivariate normal distribution.
- Return type:
- bins(nBins=99, nStd=4.0, axis=None, relative=False)
Discretizes a range given the mean and variance of the distribution
- Parameters:
nBins (int, optional) – Number of bins to return.
nStd (float, optional) – The bin edges = mean +- nStd * variance.
dim (int, optional) – Get the bins of this dimension, if None, returns bins for all dimensions.
- Returns:
bins – The bin edges.
- Return type:
geobipy.StatArray
- property ndim
Place Holder for children
- pad(N)
Pads the mean and variance to the given size N: Padded size
- probability(x, log, axis=None, **kwargs)
For a realization x, compute the probability