public class DiscreteDataset
extends java.lang.Object
Constructor and Description |
---|
DiscreteDataset()
Default constructor
|
DiscreteDataset(int nPartitions,
myDataset dataset)
It sets a discrete dataset by setting up its properties
|
Modifier and Type | Method and Description |
---|---|
Interval |
getInterval(int variable,
int interval)
It returns the interval of an attribute
|
boolean |
isCovered(int variable,
int interval,
double value)
It checks whether a value is covered by an interval for an attribute
|
int |
numIntervals(int variable)
It returns the number of intervals in which the domain of an attribute has been decomposed
|
public DiscreteDataset()
Default constructor
public DiscreteDataset(int nPartitions, myDataset dataset)
It sets a discrete dataset by setting up its properties
nPartitions
- The number of partition in which numeric attributes are uniformly divideddataset
- The instance of the dataset for dealing with its recordspublic int numIntervals(int variable)
It returns the number of intervals in which the domain of an attribute has been decomposed
variable
- The ID of the attributepublic Interval getInterval(int variable, int interval)
It returns the interval of an attribute
variable
- The ID of the attributeinterval
- The ID of the intervalpublic boolean isCovered(int variable, int interval, double value)
It checks whether a value is covered by an interval for an attribute
variable
- The ID of the attributeinterval
- The ID of the intervalvalue
- The value to check