private static boolean check(final double value) {
        if (Double.isNaN(value)) {
            if (Debug.DEBUG) {
                System.out.println("NaN occurs.");
            }
            return false;
        }
        if (Double.isInfinite(value)) {
            if (Debug.DEBUG) {
                System.out.println("Infinite occurs.");
            }
            return false;
        }
        return true;
    }