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:
java.io.Serializable
class InferenceException extends java.lang.IllegalArgumentExceptionPackage private exception class with constants for frequently used messages.- Since:
- 1.1
-
-
Field Summary
Fields Modifier and Type Field Description (package private) static java.lang.StringCATEGORIES_REQUIREDError message for "categoriesx < y".(package private) static java.lang.StringINVALID_PROBABILITYError message for "invalid probability" condition when "x not in [0, 1]".(package private) static java.lang.StringINVALID_SIGNIFICANCEError message for "invalid significance" condition when "x not in (0, 0.5]".(package private) static java.lang.StringNEGATIVEError message for "negative" condition when "x < 0".(package private) static java.lang.StringNO_DATAError message for "no data" condition.(package private) static java.lang.StringNOT_RECTANGULARError message for "non-rectangular matrix" when "some row lengths x != others y".(package private) static java.lang.StringNOT_STRICTLY_POSITIVEError message for "not strictly positive" condition when "x <= 0".private static longserialVersionUIDSerializable version identifier.(package private) static java.lang.StringTWO_CATEGORIES_REQUIREDError message for "categoriesx < 2".(package private) static java.lang.StringTWO_VALUES_REQUIREDError message for "valuesx < 2".(package private) static java.lang.StringVALUES_MISMATCHError message for "mismatch" condition when "values x != y".(package private) static java.lang.StringVALUES_REQUIREDError message for "valuesx < y".(package private) static java.lang.StringX_GT_YError message for "too large" condition when "x > y".(package private) static java.lang.StringX_GTE_YError message for "too large" condition when "x >= y".(package private) static java.lang.StringX_LT_YError message for "too small" condition when "x < y".(package private) static java.lang.StringZEROError message for "zero" condition when "x == 0".(package private) static java.lang.StringZERO_ATError message for "zero" condition when "x[i] == 0".
-
Constructor Summary
Constructors Constructor Description InferenceException(java.lang.String message)Creates an exception.InferenceException(java.lang.String message, java.lang.Object... formatArguments)Creates an exception.
-
-
-
Field Detail
-
INVALID_PROBABILITY
static final java.lang.String INVALID_PROBABILITY
Error message for "invalid probability" condition when "x not in [0, 1]".- See Also:
- Constant Field Values
-
TWO_CATEGORIES_REQUIRED
static final java.lang.String TWO_CATEGORIES_REQUIRED
Error message for "categoriesx < 2".- See Also:
- Constant Field Values
-
TWO_VALUES_REQUIRED
static final java.lang.String TWO_VALUES_REQUIRED
Error message for "valuesx < 2".- See Also:
- Constant Field Values
-
CATEGORIES_REQUIRED
static final java.lang.String CATEGORIES_REQUIRED
Error message for "categoriesx < y".- See Also:
- Constant Field Values
-
VALUES_REQUIRED
static final java.lang.String VALUES_REQUIRED
Error message for "valuesx < y".- See Also:
- Constant Field Values
-
NOT_RECTANGULAR
static final java.lang.String NOT_RECTANGULAR
Error message for "non-rectangular matrix" when "some row lengths x != others y".- See Also:
- Constant Field Values
-
VALUES_MISMATCH
static final java.lang.String VALUES_MISMATCH
Error message for "mismatch" condition when "values x != y".- See Also:
- Constant Field Values
-
NEGATIVE
static final java.lang.String NEGATIVE
Error message for "negative" condition when "x < 0".- See Also:
- Constant Field Values
-
ZERO
static final java.lang.String ZERO
Error message for "zero" condition when "x == 0".- See Also:
- Constant Field Values
-
ZERO_AT
static final java.lang.String ZERO_AT
Error message for "zero" condition when "x[i] == 0".- See Also:
- Constant Field Values
-
INVALID_SIGNIFICANCE
static final java.lang.String INVALID_SIGNIFICANCE
Error message for "invalid significance" condition when "x not in (0, 0.5]".- See Also:
- Constant Field Values
-
NOT_STRICTLY_POSITIVE
static final java.lang.String NOT_STRICTLY_POSITIVE
Error message for "not strictly positive" condition when "x <= 0".- See Also:
- Constant Field Values
-
NO_DATA
static final java.lang.String NO_DATA
Error message for "no data" condition.- See Also:
- Constant Field Values
-
X_GT_Y
static final java.lang.String X_GT_Y
Error message for "too large" condition when "x > y".- See Also:
- Constant Field Values
-
X_GTE_Y
static final java.lang.String X_GTE_Y
Error message for "too large" condition when "x >= y".- See Also:
- Constant Field Values
-
X_LT_Y
static final java.lang.String X_LT_Y
Error message for "too small" condition when "x < y".- See Also:
- Constant Field Values
-
serialVersionUID
private static final long serialVersionUID
Serializable version identifier.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
InferenceException
InferenceException(java.lang.String message)
Creates an exception.- Parameters:
message- Exception message.
-
InferenceException
InferenceException(java.lang.String message, java.lang.Object... formatArguments)Creates an exception.- Parameters:
message- Exception message with replaceable parameters.formatArguments- Arguments for formatting the message.
-
-