in commons-rng-sampling/src/main/java/org/apache/commons/rng/sampling/distribution/StableSampler.java [1455:1465]
private static void validateParameters(double alpha, double beta) {
// The epsilon (1-alpha) value must be in the interval [-1, 1).
// Logic inversion will identify NaN
final double eps = 1 - alpha;
if (!(-1 <= eps && eps < 1)) {
throw new IllegalArgumentException("alpha is not in the interval (0, 2]: " + alpha);
}
if (!(-1 <= beta && beta <= 1)) {
throw new IllegalArgumentException("beta is not in the interval [-1, 1]: " + beta);
}
}