test_class.declarator: log = LoggerFactory.getLogger(WishartTest.class)
test_class.modifier: private static final
test_class.original_string: private static final Logger log = LoggerFactory.getLogger(WishartTest.class);
test_class.type: Logger
test_class.var_name: log
test_class.file: contrib/src/test/java/macrobase/analysis/stats/distribution/WishartTest.java
test_class.identifier: WishartTest
test_case.body: @Test
      public void entropyTest() {
          double[][] matrixArray;
  
          // Comparison values were taken from scipy implementation of wishart entropy.
          matrixArray = new double[][]{{1, 0}, {0, 1}};
          assertEquals(3.953808582067758, new Wishart(new BlockRealMatrix(matrixArray), 2).getEntropy(), 1e-7);
  
          matrixArray = new double[][]{{2, 1}, {1, 2}};
          assertEquals(8.4584668123359084, new Wishart(new BlockRealMatrix(matrixArray), 5).getEntropy(), 1e-7);
      }
test_case.class_method_signature: WishartTest.entropyTest()
test_case.full_signature: @Test public void entropyTest()
test_case.identifier: entropyTest
test_case.invocations: assertEquals getEntropy assertEquals getEntropy
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void entropyTest()
focal_class.declarator: log = LoggerFactory.getLogger(Wishart.class)
focal_class.modifier: private static final
focal_class.original_string: private static final Logger log = LoggerFactory.getLogger(Wishart.class);
focal_class.type: Logger
focal_class.var_name: log
focal_class.declarator: logDetOmega
focal_class.modifier: private final
focal_class.original_string: private final double logDetOmega;
focal_class.type: double
focal_class.var_name: logDetOmega
focal_class.declarator: omega
focal_class.modifier: private
focal_class.original_string: private RealMatrix omega;
focal_class.type: RealMatrix
focal_class.var_name: omega
focal_class.declarator: nu
focal_class.modifier: private
focal_class.original_string: private double nu;
focal_class.type: double
focal_class.var_name: nu
focal_class.declarator: D
focal_class.modifier: private
focal_class.original_string: private int D;
focal_class.type: int
focal_class.var_name: D
focal_class.file: contrib/src/main/java/macrobase/analysis/stats/distribution/Wishart.java
focal_class.identifier: Wishart
focal_class.class_method_signature: Wishart.Wishart(RealMatrix omega, double nu)
focal_class.full_signature: public  Wishart(RealMatrix omega, double nu)
focal_class.identifier: Wishart
focal_class.modifiers: public
focal_class.parameters: (RealMatrix omega, double nu)
focal_class.signature:  Wishart(RealMatrix omega, double nu)
focal_class.class_method_signature: Wishart.lnB()
focal_class.full_signature: public double lnB()
focal_class.identifier: lnB
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: double
focal_class.signature: double lnB()
focal_class.class_method_signature: Wishart.expectationLnLambda()
focal_class.full_signature: private double expectationLnLambda()
focal_class.identifier: expectationLnLambda
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.return: double
focal_class.signature: double expectationLnLambda()
focal_class.class_method_signature: Wishart.getEntropy()
focal_class.full_signature: public double getEntropy()
focal_class.identifier: getEntropy
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: double
focal_class.signature: double getEntropy()
focal_class.class_method_signature: Wishart.getExpectationLogDeterminantLambda()
focal_class.full_signature: public double getExpectationLogDeterminantLambda()
focal_class.identifier: getExpectationLogDeterminantLambda
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: double
focal_class.signature: double getExpectationLogDeterminantLambda()
focal_method.body: public double getEntropy() {
          return -lnB() - 0.5 * (nu - D - 1) * expectationLnLambda() + nu * D / 2.;
      }
focal_method.class_method_signature: Wishart.getEntropy()
focal_method.full_signature: public double getEntropy()
focal_method.identifier: getEntropy
focal_method.invocations: lnB expectationLnLambda
focal_method.modifiers: public
focal_method.parameters: ()
focal_method.return: double
focal_method.signature: double getEntropy()