Java Code Examples for org.apache.commons.math3.exception.util.LocalizedFormats#DIGEST_NOT_INITIALIZED

The following examples show how to use org.apache.commons.math3.exception.util.LocalizedFormats#DIGEST_NOT_INITIALIZED . 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: ValueServer.java    From astor with GNU General Public License v2.0 3 votes vote down vote up
/**
 * Gets a random value in DIGEST_MODE.
 * <p>
 * <strong>Preconditions</strong>: <ul>
 * <li>Before this method is called, <code>computeDistribution()</code>
 * must have completed successfully; otherwise an
 * <code>IllegalStateException</code> will be thrown</li></ul></p>
 *
 * @return next random value from the empirical distribution digest
 * @throws MathIllegalStateException if digest has not been initialized
 */
private double getNextDigest() throws MathIllegalStateException {
    if ((empiricalDistribution == null) ||
        (empiricalDistribution.getBinStats().size() == 0)) {
        throw new MathIllegalStateException(LocalizedFormats.DIGEST_NOT_INITIALIZED);
    }
    return empiricalDistribution.getNextValue();
}
 
Example 2
Source File: ValueServer.java    From astor with GNU General Public License v2.0 3 votes vote down vote up
/**
 * Gets a random value in DIGEST_MODE.
 * <p>
 * <strong>Preconditions</strong>: <ul>
 * <li>Before this method is called, <code>computeDistribution()</code>
 * must have completed successfully; otherwise an
 * <code>IllegalStateException</code> will be thrown</li></ul></p>
 *
 * @return next random value from the empirical distribution digest
 * @throws MathIllegalStateException if digest has not been initialized
 */
private double getNextDigest() throws MathIllegalStateException {
    if ((empiricalDistribution == null) ||
        (empiricalDistribution.getBinStats().size() == 0)) {
        throw new MathIllegalStateException(LocalizedFormats.DIGEST_NOT_INITIALIZED);
    }
    return empiricalDistribution.getNextValue();
}
 
Example 3
Source File: ValueServer.java    From astor with GNU General Public License v2.0 3 votes vote down vote up
/**
 * Gets a random value in DIGEST_MODE.
 * <p>
 * <strong>Preconditions</strong>: <ul>
 * <li>Before this method is called, <code>computeDistribution()</code>
 * must have completed successfully; otherwise an
 * <code>IllegalStateException</code> will be thrown</li></ul></p>
 *
 * @return next random value from the empirical distribution digest
 */
private double getNextDigest() {
    if ((empiricalDistribution == null) ||
        (empiricalDistribution.getBinStats().size() == 0)) {
        throw new MathIllegalStateException(LocalizedFormats.DIGEST_NOT_INITIALIZED);
    }
    return empiricalDistribution.getNextValue();
}
 
Example 4
Source File: ValueServer.java    From astor with GNU General Public License v2.0 3 votes vote down vote up
/**
 * Gets a random value in DIGEST_MODE.
 * <p>
 * <strong>Preconditions</strong>: <ul>
 * <li>Before this method is called, <code>computeDistribution()</code>
 * must have completed successfully; otherwise an
 * <code>IllegalStateException</code> will be thrown</li></ul></p>
 *
 * @return next random value from the empirical distribution digest
 * @throws MathIllegalStateException if digest has not been initialized
 */
private double getNextDigest() throws MathIllegalStateException {
    if ((empiricalDistribution == null) ||
        (empiricalDistribution.getBinStats().size() == 0)) {
        throw new MathIllegalStateException(LocalizedFormats.DIGEST_NOT_INITIALIZED);
    }
    return empiricalDistribution.getNextValue();
}
 
Example 5
Source File: ValueServer.java    From astor with GNU General Public License v2.0 3 votes vote down vote up
/**
 * Gets a random value in DIGEST_MODE.
 * <p>
 * <strong>Preconditions</strong>: <ul>
 * <li>Before this method is called, <code>computeDistribution()</code>
 * must have completed successfully; otherwise an
 * <code>IllegalStateException</code> will be thrown</li></ul></p>
 *
 * @return next random value from the empirical distribution digest
 */
private double getNextDigest() {
    if ((empiricalDistribution == null) ||
        (empiricalDistribution.getBinStats().size() == 0)) {
        throw new MathIllegalStateException(LocalizedFormats.DIGEST_NOT_INITIALIZED);
    }
    return empiricalDistribution.getNextValue();
}
 
Example 6
Source File: ValueServer.java    From astor with GNU General Public License v2.0 3 votes vote down vote up
/**
 * Gets a random value in DIGEST_MODE.
 * <p>
 * <strong>Preconditions</strong>: <ul>
 * <li>Before this method is called, <code>computeDistribution()</code>
 * must have completed successfully; otherwise an
 * <code>IllegalStateException</code> will be thrown</li></ul></p>
 *
 * @return next random value from the empirical distribution digest
 * @throws MathIllegalStateException if digest has not been initialized
 */
private double getNextDigest() throws MathIllegalStateException {
    if ((empiricalDistribution == null) ||
        (empiricalDistribution.getBinStats().size() == 0)) {
        throw new MathIllegalStateException(LocalizedFormats.DIGEST_NOT_INITIALIZED);
    }
    return empiricalDistribution.getNextValue();
}
 
Example 7
Source File: ValueServer.java    From astor with GNU General Public License v2.0 3 votes vote down vote up
/**
 * Gets a random value in DIGEST_MODE.
 * <p>
 * <strong>Preconditions</strong>: <ul>
 * <li>Before this method is called, <code>computeDistribution()</code>
 * must have completed successfully; otherwise an
 * <code>IllegalStateException</code> will be thrown</li></ul></p>
 *
 * @return next random value from the empirical distribution digest
 * @throws MathIllegalStateException if digest has not been initialized
 */
private double getNextDigest() throws MathIllegalStateException {
    if ((empiricalDistribution == null) ||
        (empiricalDistribution.getBinStats().size() == 0)) {
        throw new MathIllegalStateException(LocalizedFormats.DIGEST_NOT_INITIALIZED);
    }
    return empiricalDistribution.getNextValue();
}
 
Example 8
Source File: ValueServer.java    From astor with GNU General Public License v2.0 3 votes vote down vote up
/**
 * Gets a random value in DIGEST_MODE.
 * <p>
 * <strong>Preconditions</strong>: <ul>
 * <li>Before this method is called, <code>computeDistribution()</code>
 * must have completed successfully; otherwise an
 * <code>IllegalStateException</code> will be thrown</li></ul></p>
 *
 * @return next random value from the empirical distribution digest
 * @throws MathIllegalStateException if digest has not been initialized
 */
private double getNextDigest() throws MathIllegalStateException {
    if ((empiricalDistribution == null) ||
        (empiricalDistribution.getBinStats().size() == 0)) {
        throw new MathIllegalStateException(LocalizedFormats.DIGEST_NOT_INITIALIZED);
    }
    return empiricalDistribution.getNextValue();
}