Example usage for org.apache.commons.math3.distribution MultivariateNormalDistribution getStandardDeviations

List of usage examples for org.apache.commons.math3.distribution MultivariateNormalDistribution getStandardDeviations

Introduction

In this page you can find the example usage for org.apache.commons.math3.distribution MultivariateNormalDistribution getStandardDeviations.

Prototype

public double[] getStandardDeviations() 

Source Link

Document

Gets the square root of each element on the diagonal of the covariance matrix.

Usage

From source file:sly.speakrecognizer.test.math.MultivariateNormalMixtureExpectationMaximizationFitterTest.java

private void assertMultivariateNormalDistribution(MultivariateNormalDistribution expected,
        MultivariateNormalDistribution actual, double delta) {
    Assert.assertEquals(expected.getCovariances(), actual.getCovariances());
    Assert.assertArrayEquals(expected.getMeans(), actual.getMeans(), delta);
    Assert.assertArrayEquals(expected.getStandardDeviations(), actual.getStandardDeviations(), delta);
    Assert.assertEquals(expected.getDimension(), actual.getDimension());
}