Example usage for org.apache.commons.math4.geometry.euclidean.oned Interval checkPoint

List of usage examples for org.apache.commons.math4.geometry.euclidean.oned Interval checkPoint

Introduction

In this page you can find the example usage for org.apache.commons.math4.geometry.euclidean.oned Interval checkPoint.

Prototype

public Location checkPoint(final double point, final double tolerance) 

Source Link

Document

Check a point with respect to the interval.

Usage

From source file:alphamain.IntervalMain.java

public static void main(String[] args) {
    System.out.println("In IntervalMain class - BGN");
    System.out.println();//from w w w .  j  ava2s . c  o m

    System.out.println("=========Constructor");
    Interval interval = new Interval(2.3, 5.7);

    System.out.println("=========getInf()");
    System.out.println("getInf()=" + interval.getInf());

    System.out.println("=========getSup()");
    System.out.println("getSup()=" + interval.getSup());

    System.out.println("=========getSize()");
    System.out.println("getSize()=" + interval.getSize());

    System.out.println("=========getBarycenter()");
    System.out.println("getBarycenter()=" + interval.getBarycenter());

    System.out.println("=========checkPoint() & location");
    Location location = interval.checkPoint(9.0, Double.POSITIVE_INFINITY);
    System.out.println("Location=" + location);

    System.out.println();
    System.out.println("In IntervalMain class - END");
}