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.Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_ARRAY_SIZE |
static double |
DEFAULT_MAX |
static double |
DEFAULT_MIN |
Constructor and Description |
---|
BucketUtility() |
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 static double DEFAULT_MIN
public static double DEFAULT_MAX
public static int DEFAULT_ARRAY_SIZE
public BucketUtility(double min, double max, int noOfBuckets)
public BucketUtility()
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)