class_body
{ "{"
block_comment "/** Vector of means. */"
field_declaration
modifiers
private "private"
final "final"
array_type
floating_point_type
double "double"
dimensions
[ "["
] "]"
variable_declarator
identifier "means"
; ";"
block_comment "/** Covariance matrix. */"
field_declaration
modifiers
private "private"
final "final"
type_identifier "RealMatrix"
variable_declarator
identifier "covarianceMatrix"
; ";"
block_comment "/** The matrix inverse of the covariance matrix. */"
field_declaration
modifiers
private "private"
final "final"
type_identifier "RealMatrix"
variable_declarator
identifier "covarianceMatrixInverse"
; ";"
block_comment "/** The determinant of the covariance matrix. */"
field_declaration
modifiers
private "private"
final "final"
floating_point_type
double "double"
variable_declarator
identifier "covarianceMatrixDeterminant"
; ";"
block_comment "/** Matrix used in computation of samples. */"
field_declaration
modifiers
private "private"
final "final"
type_identifier "RealMatrix"
variable_declarator
identifier "samplingMatrix"
; ";"
block_comment "/**\n * Creates a multivariate normal distribution with t"...
constructor_declaration (+56 nodes collapsed)
block_comment "/**\n * Creates a multivariate normal distribution with t"...
constructor_declaration (+507 nodes collapsed)
block_comment "/**\n * Gets the mean vector.\n *\n * @return the m"...
method_declaration (+27 nodes collapsed)
block_comment "/**\n * Gets the covariance matrix.\n *\n * @return"...
method_declaration (+21 nodes collapsed)
block_comment "/** {@inheritDoc} */"
method_declaration
modifiers
public "public"
floating_point_type
double "double"
identifier "density"
formal_parameters
( "("
formal_parameter
modifiers
final "final"
array_type
floating_point_type
double "double"
dimensions
[ "["
] "]"
identifier "vals"
) ")"
throws
throws "throws"
type_identifier "DimensionMismatchException"
block
{ "{"
local_variable_declaration
modifiers
final "final"
integral_type
int "int"
variable_declarator
identifier "dim"
= "="
method_invocation
identifier "getDimension"
argument_list
( "("
) ")"
; ";"
if_statement (+30 nodes collapsed)
return_statement
return "return"
binary_expression
binary_expression
method_invocation
identifier "FastMath"
. "."
identifier "pow"
argument_list
( "("
binary_expression
decimal_integer_literal "2"
* "*"
field_access
identifier "FastMath"
. "."
identifier "PI"
, ","
binary_expression
unary_expression
- "-"
identifier "dim"
/ "/"
decimal_integer_literal "2"
) ")"
* "*"
method_invocation
identifier "FastMath"
. "."
identifier "pow"
argument_list
( "("
identifier "covarianceMatrixDeterminant"
, ","
unary_expression
- "-"
decimal_floating_point_literal "0.5"
) ")"
* "*"
method_invocation
identifier "getExponentTerm"
argument_list
( "("
identifier "vals"
) ")"
; ";"
} "}"
block_comment "/**\n * Gets the square root of each element on the diago"...
method_declaration (+125 nodes collapsed)
block_comment "/** {@inheritDoc} */"
method_declaration (+152 nodes collapsed)
block_comment "/**\n * Computes the term used in the exponent (see defin"...
method_declaration (+185 nodes collapsed)
} "}"