public abstract class BucketUtility
extends java.lang.Object
implements java.lang.Cloneable
BucketUtility
is an abstract base class of different bucket
utilities which relate a value provided to the GetBucket
method
to a bucket index. The range of values of individual buckets is defined by
the base class implementations and follows a linear, geometric or logarithmic
law.Constructor and Description |
---|
BucketUtility(double min,
double max,
int noOfBuckets) |
Modifier and Type | Method and Description |
---|---|
int |
getArraySize() |
abstract int |
getBucket(double condVal) |
abstract double |
getLowerBound(int index) |
double |
getMax() |
double |
getMin() |
abstract double |
getUpperBound(int index) |
boolean |
isInRange(double condVal) |
public double getMin()
public double getMax()
public int getArraySize()
public boolean isInRange(double condVal)
public abstract int getBucket(double condVal)
public abstract double getLowerBound(int index)
public abstract double getUpperBound(int index)