Class InferenceException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
java.lang.IllegalArgumentException
org.apache.commons.statistics.inference.InferenceException
- All Implemented Interfaces:
Serializable
Package private exception class with constants for frequently used messages.
- Since:
- 1.1
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) static final String
Error message for "categoriesx < y
".(package private) static final String
Error message for "invalid probability" condition when "x not in [0, 1]".(package private) static final String
Error message for "invalid significance" condition when "x not in (0, 0.5]".(package private) static final String
Error message for "negative" condition when "x < 0
".(package private) static final String
Error message for "no data" condition.(package private) static final String
Error message for "non-rectangular matrix" when "some row lengths x != others y".(package private) static final String
Error message for "not strictly positive" condition when "x <= 0
".private static final long
Serializable version identifier.(package private) static final String
Error message for "categoriesx < 2
".(package private) static final String
Error message for "valuesx < 2
".(package private) static final String
Error message for "mismatch" condition when "values x != y".(package private) static final String
Error message for "valuesx < y
".(package private) static final String
Error message for "too large" condition when "x > y
".(package private) static final String
Error message for "too large" condition when "x >= y
".(package private) static final String
Error message for "too small" condition when "x < y
".(package private) static final String
Error message for "zero" condition when "x == 0
".(package private) static final String
Error message for "zero" condition when "x[i] == 0
". -
Constructor Summary
ConstructorsConstructorDescriptionInferenceException
(String message) Creates an exception.InferenceException
(String message, Object... formatArguments) Creates an exception. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
INVALID_PROBABILITY
Error message for "invalid probability" condition when "x not in [0, 1]".- See Also:
-
TWO_CATEGORIES_REQUIRED
Error message for "categoriesx < 2
".- See Also:
-
TWO_VALUES_REQUIRED
Error message for "valuesx < 2
".- See Also:
-
CATEGORIES_REQUIRED
Error message for "categoriesx < y
".- See Also:
-
VALUES_REQUIRED
Error message for "valuesx < y
".- See Also:
-
NOT_RECTANGULAR
Error message for "non-rectangular matrix" when "some row lengths x != others y".- See Also:
-
VALUES_MISMATCH
Error message for "mismatch" condition when "values x != y".- See Also:
-
NEGATIVE
Error message for "negative" condition when "x < 0
".- See Also:
-
ZERO
Error message for "zero" condition when "x == 0
".- See Also:
-
ZERO_AT
Error message for "zero" condition when "x[i] == 0
".- See Also:
-
INVALID_SIGNIFICANCE
Error message for "invalid significance" condition when "x not in (0, 0.5]".- See Also:
-
NOT_STRICTLY_POSITIVE
Error message for "not strictly positive" condition when "x <= 0
".- See Also:
-
NO_DATA
Error message for "no data" condition.- See Also:
-
X_GT_Y
Error message for "too large" condition when "x > y
".- See Also:
-
X_GTE_Y
Error message for "too large" condition when "x >= y
".- See Also:
-
X_LT_Y
Error message for "too small" condition when "x < y
".- See Also:
-
serialVersionUID
private static final long serialVersionUIDSerializable version identifier.- See Also:
-
-
Constructor Details
-
InferenceException
InferenceException(String message) Creates an exception.- Parameters:
message
- Exception message.
-
InferenceException
Creates an exception.- Parameters:
message
- Exception message with replaceable parameters.formatArguments
- Arguments for formatting the message.
-