congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
org.apache.commons.math3.exception
Code IndexAdd Tabnine to your IDE (free)

How to use org.apache.commons.math3.exception

Best Java code snippets using org.apache.commons.math3.exception (Showing top 20 results out of 315)

origin: org.apache.commons/commons-math3

/** {@inheritDoc} */
@Override
public double inverseCumulativeProbability(final double p)
    throws OutOfRangeException {
  if (p < 0.0 || p > 1.0) {
    throw new OutOfRangeException(p, 0, 1);
  }
  return value;
}
origin: org.apache.commons/commons-math3

/**
 * {@inheritDoc}. This method <em>must</em> be overriden by concrete
 * subclasses of {@link RealVector} (current implementation throws an
 * exception).
 *
 * @throws MathUnsupportedOperationException if this method is not
 * overridden.
 */
@Override
public int hashCode() throws MathUnsupportedOperationException {
  throw new MathUnsupportedOperationException();
}
origin: org.apache.commons/commons-math3

/**
 * Modify the denominator format.
 * @param format the new denominator format value.
 * @throws NullArgumentException if {@code format} is {@code null}.
 */
public void setDenominatorFormat(final NumberFormat format) {
  if (format == null) {
    throw new NullArgumentException(LocalizedFormats.DENOMINATOR_FORMAT);
  }
  this.denominatorFormat = format;
}
origin: org.apache.commons/commons-math3

/**
 * Replace all points.
 * Note that no deep-copy of {@code points} is performed.
 *
 * @param points New Points.
 */
protected void setPoints(PointValuePair[] points) {
  if (points.length != simplex.length) {
    throw new DimensionMismatchException(points.length, simplex.length);
  }
  simplex = points;
}
origin: org.apache.commons/commons-math3

/**
 * @param max Allowed number of evalutations.
 * @throws NotStrictlyPositiveException if {@code max <= 0}.
 */
public MaxEval(int max) {
  if (max <= 0) {
    throw new NotStrictlyPositiveException(max);
  }
  maxEval = max;
}
origin: org.apache.commons/commons-math3

/** Increment a number, detecting overflows.
 * @param n number to increment
 * @return n+1 if no overflows occur
 * @exception MathArithmeticException if an overflow occurs
 * @since 3.4
 */
public static long incrementExact(final long n) throws MathArithmeticException {
  if (n == Long.MAX_VALUE) {
    throw new MathArithmeticException(LocalizedFormats.OVERFLOW_IN_ADDITION, n, 1);
  }
  return n + 1;
}
origin: org.apache.commons/commons-math3

  /**
   * {@inheritDoc}
   * @throws TooManyIterationsException
   */
  public void trigger(int max) {
    throw new TooManyIterationsException(max);
  }
}
origin: org.apache.commons/commons-math3

  /**
   * {@inheritDoc}
   * @throws TooManyEvaluationsException
   */
  public void trigger(int max) {
    throw new TooManyEvaluationsException(max);
  }
}
origin: deeplearning4j/nd4j

@Override
public double inverseCumulativeProbability(final double p) throws OutOfRangeException {
  if (p < 0.0 || p > 1.0) {
    throw new OutOfRangeException(p, 0, 1);
  }
  return p * (upper - lower) + lower;
}
origin: org.apache.commons/commons-math3

/** Check dimensions equality.
 * @param d1 first dimension
 * @param d2 second dimansion
 * @exception DimensionMismatchException if dimensions do not match
 */
private void checkDimensionsEquality(final int d1, final int d2)
  throws DimensionMismatchException {
  if (d1 != d2) {
    throw new DimensionMismatchException(d2, d1);
  }
}
origin: org.apache.commons/commons-math3

  /**
   * {@inheritDoc}
   *
   * @throws MathUnsupportedOperationException in all circumstances.
   */
  public void remove() throws MathUnsupportedOperationException {
    throw new MathUnsupportedOperationException();
  }
}
origin: org.apache.commons/commons-math3

  /**
   * Modify the whole format.
   * @param format The new whole format value.
   * @throws NullArgumentException if {@code format} is {@code null}.
   */
  public void setWholeFormat(final NumberFormat format) {
    if (format == null) {
      throw new NullArgumentException(LocalizedFormats.WHOLE_FORMAT);
    }
    this.wholeFormat = format;
  }
}
origin: org.apache.commons/commons-math3

/**
 * @param n Number of observations
 * @throws NotStrictlyPositiveException if {@code n <= 0}
 */
public KolmogorovSmirnovDistribution(int n)
  throws NotStrictlyPositiveException {
  if (n <= 0) {
    throw new NotStrictlyPositiveException(LocalizedFormats.NOT_POSITIVE_NUMBER_OF_SAMPLES, n);
  }
  this.n = n;
}
origin: org.apache.commons/commons-math3

  /**
   * {@inheritDoc}
   *
   * @throws TooManyIterationsException
   */
  public void trigger(int max) {
    throw new TooManyIterationsException(max);
  }
}
origin: org.apache.commons/commons-math3

/**
 * {@inheritDoc}
 *
 * @throws MathUnsupportedOperationException in all
 * circumstances.
 */
@Override
public void unitize() throws MathUnsupportedOperationException {
  throw new MathUnsupportedOperationException();
}
origin: org.apache.commons/commons-math3

/**
 * @param max Allowed number of iterations.
 * @throws NotStrictlyPositiveException if {@code max <= 0}.
 */
public MaxIter(int max) {
  if (max <= 0) {
    throw new NotStrictlyPositiveException(max);
  }
  maxIter = max;
}
origin: org.apache.commons/commons-math3

/**
 * {@inheritDoc}
 *
 * @throws MathUnsupportedOperationException in all
 * circumstances.
 */
@Override
public void setEntry(int index, double value)
  throws MathUnsupportedOperationException {
  throw new MathUnsupportedOperationException();
}
origin: org.apache.commons/commons-math3

/**
 * {@inheritDoc}
 *
 * @throws MathUnsupportedOperationException in all
 * circumstances.
 */
@Override
public void set(double value)
  throws MathUnsupportedOperationException {
  throw new MathUnsupportedOperationException();
}
origin: org.apache.commons/commons-math3

/**
 * {@inheritDoc}
 *
 * @throws MathUnsupportedOperationException in all circumstances.
 */
@Override
public RealVector mapToSelf(UnivariateFunction function)
  throws MathUnsupportedOperationException {
  throw new MathUnsupportedOperationException();
}
origin: org.apache.commons/commons-math3

/**
 * {@inheritDoc}
 *
 * @throws MathUnsupportedOperationException in all
 * circumstances.
 */
@Override
public RealVector mapAddToSelf(double d)
  throws MathUnsupportedOperationException {
  throw new MathUnsupportedOperationException();
}
org.apache.commons.math3.exception

Most used classes

  • OutOfRangeException
    Exception to be thrown when some argument is out of range.
  • DimensionMismatchException
    Exception to be thrown when two dimensions differ.
  • NotPositiveException
    Exception to be thrown when the argument is negative.
  • MathIllegalArgumentException
    Base class for all preconditions violation exceptions. In most cases, this class should not be insta
  • NumberIsTooLargeException
    Exception to be thrown when a number is too large.
  • ConvergenceException,
  • MathArithmeticException,
  • MathIllegalStateException,
  • NoDataException,
  • NullArgumentException,
  • MathInternalError,
  • MathUnsupportedOperationException,
  • MaxCountExceededException,
  • NonMonotonicSequenceException,
  • NotStrictlyPositiveException,
  • TooManyEvaluationsException,
  • InsufficientDataException,
  • MathParseException,
  • NoBracketingException
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now