create Distribution
Constructs an instance of the appropriate continuous probability distribution for the provided estimationResult. If no probability distribution is defined for the supplied result, then null is returned.
Null means "no distribution is defined for this TYPE". It does not cover a known type carrying invalid parameter values: the distribution's own constructor rejects those, so this function throws IllegalArgumentException rather than returning null. An estimator reporting success does not guarantee parameters a distribution will accept — a normal with zero variance, estimated from constant data, is the reachable case — so a caller scoring several candidates should expect both outcomes.
Constructs an instance of the appropriate continuous probability distribution for the provided random variable parameters. If no probability distribution is defined for the supplied type of random variable, then null is returned.
Null means "no distribution is defined for this TYPE". A known type whose parameter VALUES are invalid — a normal with zero variance, for instance — is rejected by the distribution's own constructor, so this function throws IllegalArgumentException instead of returning null.