All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class ia_math.RealInterval

java.lang.Object
   |
   +----ia_math.RealInterval

public class RealInterval
extends Object
implements Cloneable
the class RealInterval represents closed intervals of real numbers


Constructor Index

 o RealInterval()
construct the interval [-infty,infty]
 o RealInterval(double)
 o RealInterval(double, double)

Method Index

 o clone()
 o emptyInterval()
 o equals(RealInterval)
 o fullInterval()
 o hi()
 o intersect(RealInterval)
 o lo()
 o main(String[])
a test procedure which generates a few intervals and adds and multiplies them
 o nonEmpty()
 o toString()
 o union(RealInterval)

Constructors

 o RealInterval
 public RealInterval(double lo,
                     double hi) throws IAException
 o RealInterval
 public RealInterval(double x) throws IAException
 o RealInterval
 public RealInterval()
construct the interval [-infty,infty]

Methods

 o lo
 public double lo()
 o hi
 public double hi()
 o equals
 public boolean equals(RealInterval x)
 o intersect
 public void intersect(RealInterval x) throws IAException
 o union
 public void union(RealInterval x) throws IAException
 o nonEmpty
 public boolean nonEmpty()
 o toString
 public String toString()
Overrides:
toString in class Object
 o clone
 public Object clone()
Overrides:
clone in class Object
 o emptyInterval
 public static RealInterval emptyInterval()
 o fullInterval
 public static RealInterval fullInterval()
 o main
 public static void main(String args[])
a test procedure which generates a few intervals and adds and multiplies them


All Packages  Class Hierarchy  This Package  Previous  Next  Index