|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecttextclassifier.discretization.LookupTable
public class LookupTable
Class that stores ssociated array of attribute name and its discreted intervals
Constructor Summary | |
---|---|
LookupTable()
Constructor of the class |
Method Summary | |
---|---|
void |
createKey(java.lang.String att_name)
Creates a new record with a new atribute and empty list of intervals |
DiscInterval |
findInterval(java.lang.String att_name,
double att_value)
Finds an interval with given attribute and specified value inside of it |
java.util.HashMap<java.lang.String,java.util.ArrayList<DiscInterval>> |
getData()
Returns all the stored data |
void |
insert(java.lang.String att_name,
double min,
double max)
Inserts a new interval for a specified attribute |
void |
insertColumn(java.lang.String att_name,
java.util.ArrayList<DiscInterval> coldata)
Inserts a new attribute and its intervals into the hashmap of intervals |
void |
printAtt(java.lang.String att_name)
Prints the list of intervals created over a specified attribute |
void |
printColumns()
Prints all created intervals |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LookupTable()
Method Detail |
---|
public java.util.HashMap<java.lang.String,java.util.ArrayList<DiscInterval>> getData()
public void createKey(java.lang.String att_name)
att_name
- new attribute namepublic void insert(java.lang.String att_name, double min, double max)
att_name
- attribute namemin
- minimum value of the intervalmax
- maximum value of the intervalpublic DiscInterval findInterval(java.lang.String att_name, double att_value)
att_name
- attribute nameatt_value
- value of the attribute
public void printAtt(java.lang.String att_name)
att_name
- attribute namepublic void insertColumn(java.lang.String att_name, java.util.ArrayList<DiscInterval> coldata)
att_name
- attribute namecoldata
- list of discretized intervalspublic void printColumns()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |