Available Methods
- NUMBER_OF_SAMPLES
- ZERO_NORM
- LOWER_ENDPOINT_ABOVE_UPPER_ENDPOINT
- FRACTION
- EXPONENT
- INPUT_ARRAY
- ZERO_DENOMINATOR
- INDEX
- OVERFLOW_IN_FRACTION
- OUT_OF_BOUND_SIGNIFICANCE_LEVEL
- LOWER_BOUND_NOT_BELOW_UPPER_BOUND
- INSUFFICIENT_DIMENSION
- DISCRETE_CUMULATIVE_PROBABILITY_RETURNED_NAN
- NON_INVERTIBLE_TRANSFORM
- LIST_OF_CHROMOSOMES_BIGGER_THAN_POPULATION_SIZE
- AT_LEAST_ONE_COLUMN
- VECTOR_MUST_HAVE_AT_LEAST_ONE_ELEMENT
- NON_CONVERGENT_CONTINUED_FRACTION
- NOT_ENOUGH_DATA_FOR_NUMBER_OF_PREDICTORS
- AT_LEAST_ONE_ROW
- EMPTY_CLUSTER_IN_K_MEANS
- CANNOT_NORMALIZE_A_ZERO_NORM_VECTOR
- POPULATION_LIMIT_NOT_POSITIVE
- NUMBER_TOO_SMALL
- NO_OPTIMUM_COMPUTED_YET
- CONSTRAINT
- ZERO_DENOMINATOR_IN_FRACTION
- NO_DATA
- TOO_MANY_REGRESSORS
- VALUES_ADDED_BEFORE_CONFIGURING_STATISTIC
- INVALID_FIXED_LENGTH_CHROMOSOME
- DIMENSIONS_MISMATCH_SIMPLE
- INVALID_REGRESSION_OBSERVATION
- NUMBER_OF_POINTS
- ROOTS_OF_UNITY_NOT_COMPUTED_YET
- CANNOT_COMPUTE_NTH_ROOT_FOR_NEGATIVE_N
- OUT_OF_BOUNDS_QUANTILE_VALUE
- SHAPE
- OUT_OF_RANGE_SIMPLE
- EQUAL_VERTICES_IN_SIMPLEX
- FUNCTION
- NUMBER_OF_ELEMENTS_SHOULD_BE_POSITIVE
- PERCENTILE_IMPLEMENTATION_UNSUPPORTED_METHOD
- STANDARD_DEVIATION
- ELITISM_RATE
- SCALE
- EMPTY_POLYNOMIALS_COEFFICIENTS_ARRAY
- DIMENSION
- CANNOT_FORMAT_OBJECT_TO_FRACTION
- FACTORIAL_NEGATIVE_PARAMETER
- INSUFFICIENT_ROWS_AND_COLUMNS
- FIRST_COLUMNS_NOT_INITIALIZED_YET
- NAN_VALUE_CONVERSION
- POPULATION_SIZE
- UNKNOWN_PARAMETER
- SUBARRAY_ENDS_AFTER_ARRAY_END
- CONTINUED_FRACTION_INFINITY_DIVERGENCE
- INSUFFICIENT_OBSERVED_POINTS_IN_SAMPLE
- INFINITE_VALUE_CONVERSION
- URL_CONTAINS_NO_DATA
- NO_REGRESSORS
- NO_FEASIBLE_SOLUTION
- OVERFLOW_IN_SUBTRACTION
- TOO_SMALL_INTEGRATION_INTERVAL
- INITIAL_CAPACITY_NOT_POSITIVE
- NOT_SUPPORTED_IN_DIMENSION_N
- FIRST_ROWS_NOT_INITIALIZED_YET
- REAL_FORMAT
- NORMALIZE_INFINITE
- LENGTH
- INITIAL_COLUMN_AFTER_FINAL_COLUMN
- ZERO_NOT_ALLOWED
- ENDPOINTS_NOT_AN_INTERVAL
- UNBOUNDED_SOLUTION
- OBJECT_TRANSFORMATION
- ROW_INDEX
- IMAGINARY_FORMAT
- MEAN
- NUMBER_OF_TRIALS
- COVARIANCE_MATRIX
- NO_DEGREES_OF_FREEDOM
- OVERFLOW
- WHOLE_FORMAT
- NORM
- PERMUTATION_SIZE
- ILL_CONDITIONED_OPERATOR
- FAILED_BRACKETING
- CANNOT_DISCARD_NEGATIVE_NUMBER_OF_ELEMENTS
- INFINITE_ARRAY_ELEMENT
- INITIAL_ROW_AFTER_FINAL_ROW
- SIMPLE_MESSAGE
- SIGNIFICANCE_LEVEL
- NUMBER_OF_INTERPOLATION_POINTS
- ARRAY_SUMS_TO_ZERO
- UNABLE_TO_SOLVE_SINGULAR_PROBLEM
- OVERFLOW_IN_ADDITION
- START_POSITION
- SIMPLEX_NEED_ONE_POINT
- DIMENSIONS_MISMATCH_2x2 ( )
- NUMBER_TOO_LARGE
- INSUFFICIENT_DATA_FOR_T_STATISTIC
- UNABLE_TO_BRACKET_OPTIMUM_IN_LINE_SEARCH
- NAN_ELEMENT_AT_INDEX
- NUMBER_TOO_SMALL_BOUND_EXCLUDED
- INFINITE_BOUND
- NUMBER_OF_SUCCESSES
- SAMPLE_SIZE_LARGER_THAN_POPULATION_SIZE
- DIMENSIONS_MISMATCH
- WEIGHT_AT_LEAST_ONE_NON_ZERO
- NON_SELF_ADJOINT_OPERATOR
- EMPTY_SELECTED_COLUMN_INDEX_ARRAY
- ARRAY_SIZES_SHOULD_HAVE_DIFFERENCE_1 ( )
- SINGULAR_OPERATOR
- ZERO_NORM_FOR_ROTATION_DEFINING_VECTOR
- DENOMINATOR_FORMAT
- BINOMIAL_INVALID_PARAMETERS_ORDER
- NON_POSITIVE_DEFINITE_OPERATOR
- SINGULAR_MATRIX
- CARDAN_ANGLES_SINGULARITY
- TOO_MANY_ELEMENTS_TO_DISCARD_FROM_ARRAY
- FIRST_ELEMENT_NOT_ZERO
- MINIMAL_STEPSIZE_REACHED_DURING_INTEGRATION
- CLOSEST_ORTHOGONAL_MATRIX_HAS_NEGATIVE_DETERMINANT
- NOT_DECREASING_SEQUENCE
- NOT_POSITIVE_NUMBER_OF_SAMPLES
- PERCENTILE_IMPLEMENTATION_CANNOT_ACCESS_METHOD
- ARRAY_ELEMENT
- UNKNOWN_MODE
- DIFFERENT_ROWS_LENGTHS
- ILLEGAL_STATE
- INDEX_NOT_POSITIVE
- DEGREES_OF_FREEDOM
- OUTLINE_BOUNDARY_LOOP_OPEN
- BANDWIDTH
- OUT_OF_RANGE_ROOT_OF_UNITY_INDEX
- NUMERATOR_FORMAT
- OUT_OF_RANGE_LEFT
- INVALID_BINARY_DIGIT
- CONVERGENCE_FAILED
- OBSERVED_COUNTS_BOTTH_ZERO_FOR_ENTRY
- INSTANCES_NOT_COMPARABLE_TO_EXISTING_VALUES
- ROBUSTNESS_ITERATIONS
- GCD_OVERFLOW_64_BITS ( )
- RANDOMKEY_MUTATION_WRONG_CLASS
- ROTATION_MATRIX_DIMENSIONS
- NOT_ENOUGH_POINTS_IN_SPLINE_PARTITION
- EMPTY_SELECTED_ROW_INDEX_ARRAY
- MUTATION_RATE
- CONTINUED_FRACTION_NAN_DIVERGENCE
- UNMATCHED_ODE_IN_EXPANDED_SET
- INTERNAL_ERROR
- NEGATIVE_ELEMENT_AT_INDEX
- DIGEST_NOT_INITIALIZED
- NOT_POWER_OF_TWO_CONSIDER_PADDING
- TWO_OR_MORE_CATEGORIES_REQUIRED
- INTEGRATION_METHOD_NEEDS_AT_LEAST_TWO_PREVIOUS_POINTS
- NOT_FINITE_NUMBER
- POLYNOMIAL
- FRACTION_CONVERSION_OVERFLOW
- OVERFLOW_IN_MULTIPLICATION
- NON_SYMMETRIC_MATRIX
- CROSSOVER_RATE
- ZERO_FRACTION_TO_DIVIDE_BY
- TOO_LARGE_TOURNAMENT_ARITY
- GCD_OVERFLOW_32_BITS ( )
- PROPAGATION_DIRECTION_MISMATCH
- HOLE_BETWEEN_MODELS_TIME_RANGES
- INVALID_MAX_ITERATIONS
- CANNOT_SUBSTITUTE_ELEMENT_FROM_EMPTY_ARRAY
- ZERO_NORM_FOR_ROTATION_AXIS
- CANNOT_CLEAR_STATISTIC_CONSTRUCTED_FROM_EXTERNAL_MOMENTS
- NOT_POSITIVE_SCALE
- EULER_ANGLES_SINGULARITY
- UNSUPPORTED_OPERATION
- NEGATIVE_COMPLEX_MODULE
- NON_SQUARE_OPERATOR
- NOT_INCREASING_SEQUENCE
- CANNOT_COMPUTE_BETA_DENSITY_AT_0_FOR_SOME_ALPHA ( )
- MAX_COUNT_EXCEEDED
- NORMALIZE_NAN
- UNABLE_TO_ORTHOGONOLIZE_MATRIX
- NAN_NOT_ALLOWED
- OUT_OF_BOUNDS_CONFIDENCE_LEVEL
- FAILED_FRACTION_CONVERSION
- EMPTY_INTERPOLATION_SAMPLE
- WRONG_NUMBER_OF_POINTS
- NO_BIN_SELECTED
- NOT_POWER_OF_TWO_PLUS_ONE
- CANNOT_COMPUTE_0TH_ROOT_OF_UNITY ( )
- CANNOT_COMPUTE_BETA_DENSITY_AT_1_FOR_SOME_BETA ( )
- TWO_OR_MORE_VALUES_IN_CATEGORY_REQUIRED
- NUMBER_OF_SUCCESS_LARGER_THAN_POPULATION_SIZE
Related Classes
- java.util.Arrays
- java.util.Iterator
- java.lang.reflect.InvocationTargetException
- java.security.MessageDigest
- java.math.BigDecimal
- java.math.BigInteger
- java.security.SecureRandom
- java.text.NumberFormat
- java.awt.geom.AffineTransform
- org.apache.commons.math3.linear.RealMatrix
- org.apache.commons.math3.util.Pair
- org.apache.commons.math3.util.FastMath
- org.apache.commons.math3.linear.Array2DRowRealMatrix
- org.apache.commons.math3.linear.RealVector
- org.apache.commons.math3.random.RandomGenerator
- org.apache.commons.math3.linear.ArrayRealVector
- org.apache.commons.math3.util.Precision
- org.apache.commons.math3.complex.Complex
- org.apache.commons.math3.linear.LUDecomposition
- org.apache.commons.math3.analysis.UnivariateFunction
- org.apache.commons.math3.stat.descriptive.rank.Percentile
- org.apache.commons.math3.util.MathArrays
- org.apache.commons.math3.exception.DimensionMismatchException
- org.apache.commons.math3.linear.DecompositionSolver
- org.apache.commons.math3.exception.MathIllegalArgumentException
Java Code Examples for org.apache.commons.math3.exception.util.LocalizedFormats#NAN_NOT_ALLOWED
The following examples show how to use
org.apache.commons.math3.exception.util.LocalizedFormats#NAN_NOT_ALLOWED .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: RandomDataImpl.java From astor with GNU General Public License v2.0 | 5 votes |
/** * {@inheritDoc} * * <p> * <strong>Algorithm Description</strong>: if the lower bound is excluded, * scales the output of Random.nextDouble(), but rejects 0 values (i.e., * will generate another random double if Random.nextDouble() returns 0). * This is necessary to provide a symmetric output interval (both * endpoints excluded). * </p> * * @throws MathIllegalArgumentException if one of the bounds is infinite or * {@code NaN} * @since 3.0 */ public double nextUniform(double lower, double upper, boolean lowerInclusive) { if (lower >= upper) { throw new NumberIsTooLargeException(LocalizedFormats.LOWER_BOUND_NOT_BELOW_UPPER_BOUND, lower, upper, false); } if (Double.isInfinite(lower) || Double.isInfinite(upper)) { throw new MathIllegalArgumentException(LocalizedFormats.INFINITE_BOUND); } if (Double.isNaN(lower) || Double.isNaN(upper)) { throw new MathIllegalArgumentException(LocalizedFormats.NAN_NOT_ALLOWED); } final RandomGenerator generator = getRan(); // ensure nextDouble() isn't 0.0 double u = generator.nextDouble(); while (!lowerInclusive && u <= 0.0) { u = generator.nextDouble(); } return u * upper + (1.0 - u) * lower; }
Example 2
Source File: RandomDataImpl.java From astor with GNU General Public License v2.0 | 5 votes |
/** * {@inheritDoc} * * <p> * <strong>Algorithm Description</strong>: if the lower bound is excluded, * scales the output of Random.nextDouble(), but rejects 0 values (i.e., * will generate another random double if Random.nextDouble() returns 0). * This is necessary to provide a symmetric output interval (both * endpoints excluded). * </p> * * @throws MathIllegalArgumentException if one of the bounds is infinite or * {@code NaN} * @since 3.0 */ public double nextUniform(double lower, double upper, boolean lowerInclusive) { if (lower >= upper) { throw new NumberIsTooLargeException(LocalizedFormats.LOWER_BOUND_NOT_BELOW_UPPER_BOUND, lower, upper, false); } if (Double.isInfinite(lower) || Double.isInfinite(upper)) { throw new MathIllegalArgumentException(LocalizedFormats.INFINITE_BOUND); } if (Double.isNaN(lower) || Double.isNaN(upper)) { throw new MathIllegalArgumentException(LocalizedFormats.NAN_NOT_ALLOWED); } final RandomGenerator generator = getRan(); // ensure nextDouble() isn't 0.0 double u = generator.nextDouble(); while (!lowerInclusive && u <= 0.0) { u = generator.nextDouble(); } return u * upper + (1.0 - u) * lower; }
Example 3
Source File: NotANumberException.java From astor with GNU General Public License v2.0 | 4 votes |
/** * Construct the exception. */ public NotANumberException() { super(LocalizedFormats.NAN_NOT_ALLOWED, Double.valueOf(Double.NaN)); }
Example 4
Source File: NotANumberException.java From astor with GNU General Public License v2.0 | 4 votes |
/** * Construct the exception. */ public NotANumberException() { super(LocalizedFormats.NAN_NOT_ALLOWED, Double.NaN); }
Example 5
Source File: NotANumberException.java From astor with GNU General Public License v2.0 | 4 votes |
/** * Construct the exception. */ public NotANumberException() { super(LocalizedFormats.NAN_NOT_ALLOWED, Double.valueOf(Double.NaN)); }
Example 6
Source File: NotANumberException.java From astor with GNU General Public License v2.0 | 4 votes |
/** * Construct the exception. */ public NotANumberException() { super(LocalizedFormats.NAN_NOT_ALLOWED, Double.NaN); }
Example 7
Source File: NotANumberException.java From astor with GNU General Public License v2.0 | 4 votes |
/** * Construct the exception. */ public NotANumberException() { super(LocalizedFormats.NAN_NOT_ALLOWED, Double.valueOf(Double.NaN)); }
Example 8
Source File: NotANumberException.java From astor with GNU General Public License v2.0 | 4 votes |
/** * Construct the exception. */ public NotANumberException() { super(LocalizedFormats.NAN_NOT_ALLOWED, Double.valueOf(Double.NaN)); }