MultivariateGaussian¶
-
class
pyspark.mllib.stat.MultivariateGaussian¶ Represents a (mu, sigma) tuple
Examples
>>> m = MultivariateGaussian(Vectors.dense([11,12]),DenseMatrix(2, 2, (1.0, 3.0, 5.0, 2.0))) >>> (m.mu, m.sigma.toArray()) (DenseVector([11.0, 12.0]), array([[ 1., 5.],[ 3., 2.]])) >>> (m[0], m[1]) (DenseVector([11.0, 12.0]), array([[ 1., 5.],[ 3., 2.]]))
Methods
count(value, /)Return number of occurrences of value.
index(value[, start, stop])Return first index of value.
Attributes
Alias for field number 0
Alias for field number 1
Methods Documentation
-
count(value, /)¶ Return number of occurrences of value.
-
index(value, start, stop, /)¶ Return first index of value.
Raises ValueError if the value is not present.
Attributes Documentation
-
mu¶ Alias for field number 0
-
sigma¶ Alias for field number 1
-