public void ValidateDensity(double nu, double density) { var matrix = Matrix <double> .Build.Dense(1, 1, 1.0); var x = Matrix <double> .Build.Dense(1, 1, 5.0); var d = new InverseWishart(nu, matrix); AssertHelpers.AlmostEqualRelative(density, d.Density(x), 16); }
public void ValidateDensity([Values(1.0, 2.0, 5.0)] double nu, [Values(0.03228684517430723, 0.018096748360719193, 0.00043049126899076171)] double density) { const int Order = 1; var matrix = new DenseMatrix(Order); matrix[0, 0] = 1; var x = new DenseMatrix(Order); x[0, 0] = 5; var d = new InverseWishart(nu, matrix); AssertHelpers.AlmostEqual(density, d.Density(x), 16); }
public void ValidateDensity(double nu, double density) { const int Order = 1; var matrix = new DenseMatrix(Order); matrix[0, 0] = 1; var x = new DenseMatrix(Order); x[0, 0] = 5; var d = new InverseWishart(nu, matrix); AssertHelpers.AlmostEqualRelative(density, d.Density(x), 16); }
public void ValidateDensity(double nu, double density) { int order = 1; var matrix = new DenseMatrix(order); matrix[0, 0] = 1; var X = new DenseMatrix(order); X[0, 0] = 5; var d = new InverseWishart(nu, matrix); AssertHelpers.AlmostEqual(density, d.Density(X), 16); }