|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectlt.monarch.chart.util.DoubleComparator
public class DoubleComparator extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static double |
EPSILON
|
| Constructor and Description |
|---|
DoubleComparator()
|
| Modifier and Type | Method and Description |
|---|---|
static boolean |
equals(double a,
double b)
Returns true if two doubles are considered equal. |
static boolean |
equals(double a,
double b,
double epsilon)
Returns true if two doubles are considered equal. |
static boolean |
greaterOrEqual(double a,
double b)
|
static boolean |
greaterOrEqual(double a,
double b,
double epsilon)
|
static boolean |
greaterThan(double a,
double b)
Returns true if the first double is considered greater than the second double. |
static boolean |
greaterThan(double a,
double b,
double epsilon)
Returns true if the first double is considered greater than the second double. |
static boolean |
lessOrEqual(double a,
double b)
|
static boolean |
lessOrEqual(double a,
double b,
double epsilon)
|
static boolean |
lessThan(double a,
double b)
Returns true if the first double is considered less than the second double. |
static boolean |
lessThan(double a,
double b,
double epsilon)
Returns true if the first double is considered less than the second double. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final double EPSILON
| Constructor Detail |
|---|
public DoubleComparator()
| Method Detail |
|---|
public static boolean equals(double a,
double b)
a - double to compare.b - double to compare.
public static boolean equals(double a,
double b,
double epsilon)
a - double to compare.b - double to compareepsilon - double which is compared to the absolute difference of two
doubles to determine if they are equal.
public static boolean greaterThan(double a,
double b)
a - first doubleb - second double
public static boolean greaterThan(double a,
double b,
double epsilon)
a - first doubleb - second double
public static boolean lessThan(double a,
double b)
a - first doubleb - second double
public static boolean lessThan(double a,
double b,
double epsilon)
a - first doubleb - second double
public static boolean lessOrEqual(double a,
double b)
public static boolean lessOrEqual(double a,
double b,
double epsilon)
public static boolean greaterOrEqual(double a,
double b)
public static boolean greaterOrEqual(double a,
double b,
double epsilon)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||