edu.ucla.util
Class Interval

Object
  extended by Interval
Direct Known Subclasses:
ProbabilityInterval

public class Interval
extends Object

Class for interval.


Constructor Summary
Interval()
           
Interval(double value)
           
Interval(double lowerBound, double upperBound)
           
Interval(Interval interval, double offset)
           
 
Method Summary
 boolean allNegative()
           
 boolean allPositive()
           
 StringBuffer append(StringBuffer buff, NumberFormat format)
           
 double closestToZero()
           
 int compareLowerBound(Object obj)
           
 int compareUpperBound(Object obj)
           
 boolean contains(double value)
           
 boolean epsilonContains(double value, double epsilon)
           
 double getAbsoluteLowerBound()
           
 double getAbsoluteUpperBound()
           
 double getLowerBound()
           
 double getUpperBound()
           
 void intersect(Interval interval)
           
 boolean isEmpty()
           
 boolean isPoint()
           
 String toString()
           
 String toString(NumberFormat format)
           
 
Methods inherited from class Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Interval

public Interval()

Interval

public Interval(double value)

Interval

public Interval(double lowerBound,
                double upperBound)

Interval

public Interval(Interval interval,
                double offset)
Method Detail

compareLowerBound

public int compareLowerBound(Object obj)
Since:
082102

compareUpperBound

public int compareUpperBound(Object obj)

toString

public String toString()
Overrides:
toString in class Object

toString

public String toString(NumberFormat format)
Since:
20021003

append

public StringBuffer append(StringBuffer buff,
                           NumberFormat format)
Since:
20060209

isEmpty

public boolean isEmpty()

isPoint

public boolean isPoint()

getLowerBound

public double getLowerBound()

getUpperBound

public double getUpperBound()

getAbsoluteLowerBound

public double getAbsoluteLowerBound()

getAbsoluteUpperBound

public double getAbsoluteUpperBound()

intersect

public void intersect(Interval interval)

contains

public boolean contains(double value)

epsilonContains

public boolean epsilonContains(double value,
                               double epsilon)
Since:
20060208

closestToZero

public double closestToZero()

allNegative

public boolean allNegative()

allPositive

public boolean allPositive()


Copyright 2010 UCLA Automated Reasoning Group