This mapping has 1 multi-map group: several pairings are equally correct there. The code view shows one arbitrary valid pairing, not the only one.

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–261 unchanged (261 lines)
262 * {@inheritDoc}
263 *
264 * For population size {@code N}, number of successes {@code m}, and sample
265 * size {@code n}, the mean is {@code n * m / N}.
266 */
267 public double getNumericalMean() {
268 return (double) (getSampleSize() * getNumberOfSuccesses()) / (double) getPopulationSize();
269 }
270
271 /**
272 * {@inheritDoc}
273 *
274 * For population size {@code N}, number of successes {@code m}, and sample
…lines 275–335 unchanged (61 lines)

After

…lines 1–261 unchanged (261 lines)
262 * {@inheritDoc}
263 *
264 * For population size {@code N}, number of successes {@code m}, and sample
265 * size {@code n}, the mean is {@code n * m / N}.
266 */
267 public double getNumericalMean() {
268 return getSampleSize() * (getNumberOfSuccesses() / (double) getPopulationSize());
269 }
270
271 /**
272 * {@inheritDoc}
273 *
274 * For population size {@code N}, number of successes {@code m}, and sample
…lines 275–335 unchanged (61 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
identifier "org"
. "."
identifier "apache"
. "."
identifier "commons"
. "."
identifier "math3"
. "."
identifier "distribution"
; ";"
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 "NotPositiveException"
; ";"
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 "NotStrictlyPositiveException"
; ";"
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 "NumberIsTooLargeException"
; ";"
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"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "org"
. "."
identifier "apache"
. "."
identifier "commons"
. "."
identifier "math3"
. "."
identifier "random"
. "."
identifier "RandomGenerator"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "org"
. "."
identifier "apache"
. "."
identifier "commons"
. "."
identifier "math3"
. "."
identifier "random"
. "."
identifier "Well19937c"
; ";"
block_comment "/**\n * Implementation of the hypergeometric distribution.\n *"...
class_declaration
modifiers
public "public"
class "class"
identifier "HypergeometricDistribution"
superclass
extends "extends"
type_identifier "AbstractIntegerDistribution"
class_body
{ "{"
block_comment "/** Serializable version identifier. */"
field_declaration
modifiers
private "private"
static "static"
final "final"
integral_type
long "long"
variable_declarator
identifier "serialVersionUID"
= "="
unary_expression
- "-"
decimal_integer_literal "436928820673516179L"
; ";"
block_comment "/** The number of successes in the population. */"
field_declaration
modifiers
private "private"
final "final"
integral_type
int "int"
variable_declarator
identifier "numberOfSuccesses"
; ";"
block_comment "/** The population size. */"
field_declaration
modifiers
private "private"
final "final"
integral_type
int "int"
variable_declarator
identifier "populationSize"
; ";"
block_comment "/** The sample size. */"
field_declaration
modifiers
private "private"
final "final"
integral_type
int "int"
variable_declarator
identifier "sampleSize"
; ";"
block_comment "/** Cached numerical variance */"
field_declaration
modifiers
private "private"
floating_point_type
double "double"
variable_declarator
identifier "numericalVariance"
= "="
field_access
identifier "Double"
. "."
identifier "NaN"
; ";"
block_comment "/** Whether or not the numerical variance has been calculate"...
field_declaration
modifiers
private "private"
boolean_type "boolean"
variable_declarator
identifier "numericalVarianceIsCalculated"
= "="
false "false"
; ";"
block_comment "/**\n * Construct a new hypergeometric distribution with "...
constructor_declaration (+49 nodes collapsed)
block_comment "/**\n * Creates a new hypergeometric distribution.\n *"...
constructor_declaration (+212 nodes collapsed)
block_comment "/** {@inheritDoc} */"
method_declaration (+115 nodes collapsed)
block_comment "/**\n * Return the domain for the given hypergeometric di"...
method_declaration (+62 nodes collapsed)
block_comment "/**\n * Return the lowest domain value for the given hype"...
method_declaration (+48 nodes collapsed)
block_comment "/**\n * Access the number of successes.\n *\n * @re"...
method_declaration
modifiers
public "public"
integral_type
int "int"
identifier "getNumberOfSuccesses"
formal_parameters
( "("
) ")"
block
{ "{"
return_statement
return "return"
identifier "numberOfSuccesses"
; ";"
} "}"
block_comment "/**\n * Access the population size.\n *\n * @return"...
method_declaration
modifiers
public "public"
integral_type
int "int"
identifier "getPopulationSize"
formal_parameters
( "("
) ")"
block
{ "{"
return_statement
return "return"
identifier "populationSize"
; ";"
} "}"
block_comment "/**\n * Access the sample size.\n *\n * @return the"...
method_declaration
modifiers
public "public"
integral_type
int "int"
identifier "getSampleSize"
formal_parameters
( "("
) ")"
block
{ "{"
return_statement
return "return"
identifier "sampleSize"
; ";"
} "}"
block_comment "/**\n * Return the highest domain value for the given hyp"...
method_declaration (+34 nodes collapsed)
block_comment "/** {@inheritDoc} */"
method_declaration (+219 nodes collapsed)
block_comment "/**\n * For this distribution, {@code X}, this method ret"...
method_declaration (+119 nodes collapsed)
block_comment "/**\n * For this distribution, {@code X}, this method ret"...
method_declaration (+72 nodes collapsed)
block_comment "/**\n * {@inheritDoc}\n *\n * For population size {"...
method_declaration
modifiers
public "public"
floating_point_type
double "double"
identifier "getNumericalMean"
formal_parameters
( "("
) ")"
block
{ "{"
return_statement
return "return"
binary_expression any 2:2
cast_expression
( "("
floating_point_type
double "double"
) ")"
parenthesized_expression
( "("
binary_expression any 2:2
method_invocation
identifier "getSampleSize"
argument_list
( "("
) ")"
* "*"
method_invocation
identifier "getNumberOfSuccesses"
argument_list
( "("
) ")"
) ")"
/ "/"
cast_expression
( "("
floating_point_type
double "double"
) ")"
method_invocation
identifier "getPopulationSize"
argument_list
( "("
) ")"
; ";"
} "}"
block_comment "/**\n * {@inheritDoc}\n *\n * For population size {"...
method_declaration (+43 nodes collapsed)
block_comment "/**\n * Used by {@link #getNumericalVariance()}.\n *\n "...
method_declaration (+100 nodes collapsed)
block_comment "/**\n * {@inheritDoc}\n *\n * For population size {"...
method_declaration (+43 nodes collapsed)
block_comment "/**\n * {@inheritDoc}\n *\n * For number of success"...
method_declaration (+33 nodes collapsed)
block_comment "/**\n * {@inheritDoc}\n *\n * The support of this d"...
method_declaration
modifiers
public "public"
boolean_type "boolean"
identifier "isSupportConnected"
formal_parameters
( "("
) ")"
block
{ "{"
return_statement
return "return"
true "true"
; ";"
} "}"
} "}"

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
identifier "org"
. "."
identifier "apache"
. "."
identifier "commons"
. "."
identifier "math3"
. "."
identifier "distribution"
; ";"
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 "NotPositiveException"
; ";"
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 "NotStrictlyPositiveException"
; ";"
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 "NumberIsTooLargeException"
; ";"
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"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "org"
. "."
identifier "apache"
. "."
identifier "commons"
. "."
identifier "math3"
. "."
identifier "random"
. "."
identifier "RandomGenerator"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "org"
. "."
identifier "apache"
. "."
identifier "commons"
. "."
identifier "math3"
. "."
identifier "random"
. "."
identifier "Well19937c"
; ";"
block_comment "/**\n * Implementation of the hypergeometric distribution.\n *"...
class_declaration
modifiers
public "public"
class "class"
identifier "HypergeometricDistribution"
superclass
extends "extends"
type_identifier "AbstractIntegerDistribution"
class_body
{ "{"
block_comment "/** Serializable version identifier. */"
field_declaration
modifiers
private "private"
static "static"
final "final"
integral_type
long "long"
variable_declarator
identifier "serialVersionUID"
= "="
unary_expression
- "-"
decimal_integer_literal "436928820673516179L"
; ";"
block_comment "/** The number of successes in the population. */"
field_declaration
modifiers
private "private"
final "final"
integral_type
int "int"
variable_declarator
identifier "numberOfSuccesses"
; ";"
block_comment "/** The population size. */"
field_declaration
modifiers
private "private"
final "final"
integral_type
int "int"
variable_declarator
identifier "populationSize"
; ";"
block_comment "/** The sample size. */"
field_declaration
modifiers
private "private"
final "final"
integral_type
int "int"
variable_declarator
identifier "sampleSize"
; ";"
block_comment "/** Cached numerical variance */"
field_declaration
modifiers
private "private"
floating_point_type
double "double"
variable_declarator
identifier "numericalVariance"
= "="
field_access
identifier "Double"
. "."
identifier "NaN"
; ";"
block_comment "/** Whether or not the numerical variance has been calculate"...
field_declaration
modifiers
private "private"
boolean_type "boolean"
variable_declarator
identifier "numericalVarianceIsCalculated"
= "="
false "false"
; ";"
block_comment "/**\n * Construct a new hypergeometric distribution with "...
constructor_declaration (+49 nodes collapsed)
block_comment "/**\n * Creates a new hypergeometric distribution.\n *"...
constructor_declaration (+212 nodes collapsed)
block_comment "/** {@inheritDoc} */"
method_declaration (+115 nodes collapsed)
block_comment "/**\n * Return the domain for the given hypergeometric di"...
method_declaration (+62 nodes collapsed)
block_comment "/**\n * Return the lowest domain value for the given hype"...
method_declaration (+48 nodes collapsed)
block_comment "/**\n * Access the number of successes.\n *\n * @re"...
method_declaration
modifiers
public "public"
integral_type
int "int"
identifier "getNumberOfSuccesses"
formal_parameters
( "("
) ")"
block
{ "{"
return_statement
return "return"
identifier "numberOfSuccesses"
; ";"
} "}"
block_comment "/**\n * Access the population size.\n *\n * @return"...
method_declaration
modifiers
public "public"
integral_type
int "int"
identifier "getPopulationSize"
formal_parameters
( "("
) ")"
block
{ "{"
return_statement
return "return"
identifier "populationSize"
; ";"
} "}"
block_comment "/**\n * Access the sample size.\n *\n * @return the"...
method_declaration
modifiers
public "public"
integral_type
int "int"
identifier "getSampleSize"
formal_parameters
( "("
) ")"
block
{ "{"
return_statement
return "return"
identifier "sampleSize"
; ";"
} "}"
block_comment "/**\n * Return the highest domain value for the given hyp"...
method_declaration (+34 nodes collapsed)
block_comment "/** {@inheritDoc} */"
method_declaration (+219 nodes collapsed)
block_comment "/**\n * For this distribution, {@code X}, this method ret"...
method_declaration (+119 nodes collapsed)
block_comment "/**\n * For this distribution, {@code X}, this method ret"...
method_declaration (+72 nodes collapsed)
block_comment "/**\n * {@inheritDoc}\n *\n * For population size {"...
method_declaration
modifiers
public "public"
floating_point_type
double "double"
identifier "getNumericalMean"
formal_parameters
( "("
) ")"
block
{ "{"
return_statement
return "return"
binary_expression any 2:2
method_invocation
identifier "getSampleSize"
argument_list
( "("
) ")"
* "*"
parenthesized_expression
( "("
binary_expression any 2:2
method_invocation
identifier "getNumberOfSuccesses"
argument_list
( "("
) ")"
/ "/"
cast_expression
( "("
floating_point_type
double "double"
) ")"
method_invocation
identifier "getPopulationSize"
argument_list
( "("
) ")"
) ")"
; ";"
} "}"
block_comment "/**\n * {@inheritDoc}\n *\n * For population size {"...
method_declaration (+43 nodes collapsed)
block_comment "/**\n * Used by {@link #getNumericalVariance()}.\n *\n "...
method_declaration (+100 nodes collapsed)
block_comment "/**\n * {@inheritDoc}\n *\n * For population size {"...
method_declaration (+43 nodes collapsed)
block_comment "/**\n * {@inheritDoc}\n *\n * For number of success"...
method_declaration (+33 nodes collapsed)
block_comment "/**\n * {@inheritDoc}\n *\n * The support of this d"...
method_declaration
modifiers
public "public"
boolean_type "boolean"
identifier "isSupportConnected"
formal_parameters
( "("
) ")"
block
{ "{"
return_statement
return "return"
true "true"
; ";"
} "}"
} "}"