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

The following examples show how to use org.apache.commons.math3.exception.util.LocalizedFormats#EMPTY_INTERPOLATION_SAMPLE . 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: HermiteInterpolator.java    From astor with GNU General Public License v2.0 4 votes vote down vote up
/** Check interpolation can be performed.
 * @exception NoDataException if interpolation cannot be performed
 * because sample is empty
 */
private void checkInterpolation() throws NoDataException {
    if (abscissae.isEmpty()) {
        throw new NoDataException(LocalizedFormats.EMPTY_INTERPOLATION_SAMPLE);
    }
}
 
Example 2
Source File: HermiteInterpolator.java    From astor with GNU General Public License v2.0 4 votes vote down vote up
/** Check interpolation can be performed.
 * @exception NoDataException if interpolation cannot be performed
 * because sample is empty
 */
private void checkInterpolation() throws NoDataException {
    if (abscissae.isEmpty()) {
        throw new NoDataException(LocalizedFormats.EMPTY_INTERPOLATION_SAMPLE);
    }
}
 
Example 3
Source File: HermiteInterpolator.java    From astor with GNU General Public License v2.0 4 votes vote down vote up
/** Check interpolation can be performed.
 * @exception MathIllegalStateException if interpolation cannot be performed
 * because sample is empty
 */
private void checkInterpolation() throws MathIllegalStateException {
    if (abscissae.isEmpty()) {
        throw new MathIllegalStateException(LocalizedFormats.EMPTY_INTERPOLATION_SAMPLE);
    }
}
 
Example 4
Source File: HermiteInterpolator.java    From astor with GNU General Public License v2.0 4 votes vote down vote up
/** Check interpolation can be performed.
 * @exception NoDataException if interpolation cannot be performed
 * because sample is empty
 */
private void checkInterpolation() throws NoDataException {
    if (abscissae.isEmpty()) {
        throw new NoDataException(LocalizedFormats.EMPTY_INTERPOLATION_SAMPLE);
    }
}
 
Example 5
Source File: HermiteInterpolator.java    From astor with GNU General Public License v2.0 4 votes vote down vote up
/** Check interpolation can be performed.
 * @exception NoDataException if interpolation cannot be performed
 * because sample is empty
 */
private void checkInterpolation() throws NoDataException {
    if (abscissae.isEmpty()) {
        throw new NoDataException(LocalizedFormats.EMPTY_INTERPOLATION_SAMPLE);
    }
}
 
Example 6
Source File: HermiteInterpolator.java    From astor with GNU General Public License v2.0 4 votes vote down vote up
/** Check interpolation can be performed.
 * @exception NoDataException if interpolation cannot be performed
 * because sample is empty
 */
private void checkInterpolation() throws NoDataException {
    if (abscissae.isEmpty()) {
        throw new NoDataException(LocalizedFormats.EMPTY_INTERPOLATION_SAMPLE);
    }
}
 
Example 7
Source File: HermiteInterpolator.java    From astor with GNU General Public License v2.0 4 votes vote down vote up
/** Check interpolation can be performed.
 * @exception NoDataException if interpolation cannot be performed
 * because sample is empty
 */
private void checkInterpolation() throws NoDataException {
    if (abscissae.isEmpty()) {
        throw new NoDataException(LocalizedFormats.EMPTY_INTERPOLATION_SAMPLE);
    }
}