Code view:

A painting is a person's account of this edit as text, recorded independently of the node mapping - a rendering often has several equally defensible answers where the mapping has one. Deletions and insertions carry no position on the opposite side in a painting, so that panel draws no caret for them.

Before

…lines 1–166 unchanged (166 lines)
167 */
168 private double calculateAsymptoticPValue(final double Umin,
169 final int n1,
170 final int n2)
171 throws ConvergenceException, MaxCountExceededException {
172
173 final int n1n2prod = n1 * n2;
174
175 // http://en.wikipedia.org/wiki/Mann%E2%80%93Whitney_U#Normal_approximation
176 final double EU = n1n2prod / 2.0;
177 final double VarU = n1n2prod * (n1 + n2 + 1) / 12.0;
178
179 final double z = (Umin - EU) / FastMath.sqrt(VarU);
…lines 180–235 unchanged (56 lines)

After

…lines 1–166 unchanged (166 lines)
167 */
168 private double calculateAsymptoticPValue(final double Umin,
169 final int n1,
170 final int n2)
171 throws ConvergenceException, MaxCountExceededException {
172
173 final double n1n2prod = n1 * n2;
174
175 // http://en.wikipedia.org/wiki/Mann%E2%80%93Whitney_U#Normal_approximation
176 final double EU = n1n2prod / 2.0;
177 final double VarU = n1n2prod * (n1 + n2 + 1) / 12.0;
178
179 final double z = (Umin - EU) / FastMath.sqrt(VarU);
…lines 180–235 unchanged (56 lines)

Before

program
block_comment "/*\n * Licensed to the Apache Software Foundation (ASF) under"...
package_declaration
package "package"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "org"
. "."
identifier "apache"
. "."
identifier "commons"
. "."
identifier "math3"
. "."
identifier "stat"
. "."
identifier "inference"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "org"
. "."
identifier "apache"
. "."
identifier "commons"
. "."
identifier "math3"
. "."
identifier "distribution"
. "."
identifier "NormalDistribution"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "org"
. "."
identifier "apache"
. "."
identifier "commons"
. "."
identifier "math3"
. "."
identifier "exception"
. "."
identifier "ConvergenceException"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "org"
. "."
identifier "apache"
. "."
identifier "commons"
. "."
identifier "math3"
. "."
identifier "exception"
. "."
identifier "MaxCountExceededException"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "org"
. "."
identifier "apache"
. "."
identifier "commons"
. "."
identifier "math3"
. "."
identifier "exception"
. "."
identifier "NoDataException"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "org"
. "."
identifier "apache"
. "."
identifier "commons"
. "."
identifier "math3"
. "."
identifier "exception"
. "."
identifier "NullArgumentException"
; ";"
import_declaration (+22 nodes collapsed)
import_declaration (+22 nodes collapsed)
import_declaration (+22 nodes collapsed)
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "org"
. "."
identifier "apache"
. "."
identifier "commons"
. "."
identifier "math3"
. "."
identifier "util"
. "."
identifier "FastMath"
; ";"
block_comment "/**\n * An implementation of the Mann-Whitney U test (also ca"...
class_declaration
modifiers
public "public"
class "class"
identifier "MannWhitneyUTest"
class_body
{ "{"
block_comment "/** Ranking algorithm. */"
field_declaration
modifiers
private "private"
type_identifier "NaturalRanking"
variable_declarator
identifier "naturalRanking"
; ";"
block_comment "/**\n * Create a test instance using where NaN's are left"...
constructor_declaration (+30 nodes collapsed)
block_comment "/**\n * Create a test instance using the given strategies"...
constructor_declaration (+35 nodes collapsed)
block_comment "/**\n * Ensures that the provided arrays fulfills the ass"...
method_declaration (+97 nodes collapsed)
block_comment "/** Concatenate the samples into one array.\n * @param x "...
method_declaration (+116 nodes collapsed)
block_comment "/**\n * Computes the <a\n * href=\"http://en.wikipedia."...
method_declaration (+206 nodes collapsed)
block_comment "/**\n * @param Umin smallest Mann-Whitney U value\n * "...
method_declaration
modifiers
private "private"
floating_point_type
double "double"
identifier "calculateAsymptoticPValue"
formal_parameters (+23 nodes collapsed)
throws
throws "throws"
type_identifier "ConvergenceException"
, ","
type_identifier "MaxCountExceededException"
block
{ "{"
local_variable_declaration
modifiers
final "final"
integral_type
int "int"
variable_declarator
identifier "n1n2prod"
= "="
binary_expression
identifier "n1"
* "*"
identifier "n2"
; ";"
line_comment "// http://en.wikipedia.org/wiki/Mann%E2%80%93Whitney_U#Norma"...
local_variable_declaration
modifiers
final "final"
floating_point_type
double "double"
variable_declarator
identifier "EU"
= "="
binary_expression
identifier "n1n2prod"
/ "/"
decimal_floating_point_literal "2.0"
; ";"
local_variable_declaration (+25 nodes collapsed)
local_variable_declaration (+26 nodes collapsed)
local_variable_declaration
modifiers
final "final"
type_identifier "NormalDistribution"
variable_declarator
identifier "standardNormal"
= "="
object_creation_expression
new "new"
type_identifier "NormalDistribution"
argument_list
( "("
decimal_integer_literal "0"
, ","
decimal_integer_literal "1"
) ")"
; ";"
return_statement
return "return"
binary_expression
decimal_integer_literal "2"
* "*"
method_invocation
identifier "standardNormal"
. "."
identifier "cumulativeProbability"
argument_list
( "("
identifier "z"
) ")"
; ";"
} "}"
block_comment "/**\n * Returns the asymptotic <i>observed significance l"...
method_declaration (+111 nodes collapsed)
} "}"

After

program
block_comment "/*\n * Licensed to the Apache Software Foundation (ASF) under"...
package_declaration
package "package"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "org"
. "."
identifier "apache"
. "."
identifier "commons"
. "."
identifier "math3"
. "."
identifier "stat"
. "."
identifier "inference"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "org"
. "."
identifier "apache"
. "."
identifier "commons"
. "."
identifier "math3"
. "."
identifier "distribution"
. "."
identifier "NormalDistribution"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "org"
. "."
identifier "apache"
. "."
identifier "commons"
. "."
identifier "math3"
. "."
identifier "exception"
. "."
identifier "ConvergenceException"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "org"
. "."
identifier "apache"
. "."
identifier "commons"
. "."
identifier "math3"
. "."
identifier "exception"
. "."
identifier "MaxCountExceededException"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "org"
. "."
identifier "apache"
. "."
identifier "commons"
. "."
identifier "math3"
. "."
identifier "exception"
. "."
identifier "NoDataException"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "org"
. "."
identifier "apache"
. "."
identifier "commons"
. "."
identifier "math3"
. "."
identifier "exception"
. "."
identifier "NullArgumentException"
; ";"
import_declaration (+22 nodes collapsed)
import_declaration (+22 nodes collapsed)
import_declaration (+22 nodes collapsed)
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "org"
. "."
identifier "apache"
. "."
identifier "commons"
. "."
identifier "math3"
. "."
identifier "util"
. "."
identifier "FastMath"
; ";"
block_comment "/**\n * An implementation of the Mann-Whitney U test (also ca"...
class_declaration
modifiers
public "public"
class "class"
identifier "MannWhitneyUTest"
class_body
{ "{"
block_comment "/** Ranking algorithm. */"
field_declaration
modifiers
private "private"
type_identifier "NaturalRanking"
variable_declarator
identifier "naturalRanking"
; ";"
block_comment "/**\n * Create a test instance using where NaN's are left"...
constructor_declaration (+30 nodes collapsed)
block_comment "/**\n * Create a test instance using the given strategies"...
constructor_declaration (+35 nodes collapsed)
block_comment "/**\n * Ensures that the provided arrays fulfills the ass"...
method_declaration (+97 nodes collapsed)
block_comment "/** Concatenate the samples into one array.\n * @param x "...
method_declaration (+116 nodes collapsed)
block_comment "/**\n * Computes the <a\n * href=\"http://en.wikipedia."...
method_declaration (+206 nodes collapsed)
block_comment "/**\n * @param Umin smallest Mann-Whitney U value\n * "...
method_declaration
modifiers
private "private"
floating_point_type
double "double"
identifier "calculateAsymptoticPValue"
formal_parameters (+23 nodes collapsed)
throws
throws "throws"
type_identifier "ConvergenceException"
, ","
type_identifier "MaxCountExceededException"
block
{ "{"
local_variable_declaration
modifiers
final "final"
floating_point_type
double "double"
variable_declarator
identifier "n1n2prod"
= "="
binary_expression
identifier "n1"
* "*"
identifier "n2"
; ";"
line_comment "// http://en.wikipedia.org/wiki/Mann%E2%80%93Whitney_U#Norma"...
local_variable_declaration
modifiers
final "final"
floating_point_type
double "double"
variable_declarator
identifier "EU"
= "="
binary_expression
identifier "n1n2prod"
/ "/"
decimal_floating_point_literal "2.0"
; ";"
local_variable_declaration (+25 nodes collapsed)
local_variable_declaration (+26 nodes collapsed)
local_variable_declaration
modifiers
final "final"
type_identifier "NormalDistribution"
variable_declarator
identifier "standardNormal"
= "="
object_creation_expression
new "new"
type_identifier "NormalDistribution"
argument_list
( "("
decimal_integer_literal "0"
, ","
decimal_integer_literal "1"
) ")"
; ";"
return_statement
return "return"
binary_expression
decimal_integer_literal "2"
* "*"
method_invocation
identifier "standardNormal"
. "."
identifier "cumulativeProbability"
argument_list
( "("
identifier "z"
) ")"
; ";"
} "}"
block_comment "/**\n * Returns the asymptotic <i>observed significance l"...
method_declaration (+111 nodes collapsed)
} "}"