Examples of IncorrectDistributionParameterException


Examples of jmt.common.exception.IncorrectDistributionParameterException

        }
      } catch (Exception ex) {
      }
      return random;
    } else {
      throw new IncorrectDistributionParameterException(
          "Remember: the *max* parameter must be > of the *min* one because min and max reppresent the boud of the distribution");
    }
  }
View Full Code Here

Examples of jmt.common.exception.IncorrectDistributionParameterException

    if (p.check()) {
      double min = ((UniformPar) p).getMin();
      double max = ((UniformPar) p).getMax();
      return (int) ((long) min + (long) ((1L + (long) max - (long) min) * engine.raw()));
    } else {
      throw new IncorrectDistributionParameterException(
          "Remember: the *max* parameter must be > of the *min* one because min and max reppresent the boud of the distribution");
    }
  }
View Full Code Here

Examples of jmt.common.exception.IncorrectDistributionParameterException

    if (p.check()) {
      double min = ((UniformPar) p).getMin();
      double max = ((UniformPar) p).getMax();
      return min + (max - min) * engine.raw();
    } else {
      throw new IncorrectDistributionParameterException(
          "Remember: the *max* parameter must be > of the *min* one because min and max reppresent the boud of the distribution");
    }
  }
View Full Code Here

Examples of jmt.common.exception.IncorrectDistributionParameterException

   */
  public double nextRand(Parameter p) throws IncorrectDistributionParameterException {
    if (p instanceof ReplayerPar) {
      return ((ReplayerPar) p).getNext();
    }
    throw new IncorrectDistributionParameterException("The class of the parameter is not correct");
  }
View Full Code Here

Examples of jmt.common.exception.IncorrectDistributionParameterException

   * @throws IncorrectDistributionParameterException
   * @return double with the probability distribution function evaluated in x.
   */

  public double pdf(double x, Parameter p) throws IncorrectDistributionParameterException {
    throw new IncorrectDistributionParameterException("Method not implemented yet");
  };
View Full Code Here

Examples of jmt.common.exception.IncorrectDistributionParameterException

   * @throws IncorrectDistributionParameterException
   * @return double with the cumulative distribution function evaluated in x.
   */

  public double cdf(double x, Parameter p) throws IncorrectDistributionParameterException {
    throw new IncorrectDistributionParameterException("Method not implemented yet");
  };
View Full Code Here

Examples of jmt.common.exception.IncorrectDistributionParameterException

    * @throws IncorrectDistributionParameterException
    * @return double with the theoretic mean of the distribution.
    */

  public double theorMean(Parameter p) throws IncorrectDistributionParameterException {
    throw new IncorrectDistributionParameterException("Method not implemented yet");
  };
View Full Code Here

Examples of jmt.common.exception.IncorrectDistributionParameterException

    * @throws IncorrectDistributionParameterException
    * @return double with the theoretic varance of the distribution.
    */

  public double theorVariance(Parameter p) throws IncorrectDistributionParameterException {
    throw new IncorrectDistributionParameterException("Method not implemented yet");
  };
View Full Code Here

Examples of jmt.common.exception.IncorrectDistributionParameterException

   * <br>Author: Bertoli Marco
   * @param meanValue new mean value for this distribution
   * @throws IncorrectDistributionParameterException if mean value is invalid for this distribution
   */
  public void setMean(double meanValue) throws IncorrectDistributionParameterException {
    throw new IncorrectDistributionParameterException("Cannot set mean value for this distribution");
  }
View Full Code Here

Examples of jmt.common.exception.IncorrectDistributionParameterException

   * @throws IncorrectDistributionParameterException if the provided parameter is not greater than zero.
   */
  public DeterministicDistrPar(double t) throws IncorrectDistributionParameterException {
    this.t = t;
    if (!check()) {
      throw new IncorrectDistributionParameterException("t < 0");
    }
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.