|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecttextclassifier.mining.fitem
public class fitem
Class representing an item of a frequent itemset
Field Summary | |
---|---|
int |
type
Data type (from java.sql) |
Constructor Summary | |
---|---|
fitem(java.lang.String attribute_name,
double attribute_value)
Constructor of the item with double value |
|
fitem(java.lang.String attribute_name,
int attribute_value)
Constructor of the item with integer value |
|
fitem(java.lang.String attribute_name,
java.lang.String attribute_value)
Constructor of the item with string value |
Method Summary | |
---|---|
boolean |
covers(fitem fitem2)
Tests if the items is covered by other item |
boolean |
equals(java.lang.Object ofitem2)
Tests if two items are equal |
java.lang.String |
getAttributeName()
Returns a name of attribute in the item |
int |
getAttributeNameMyHash()
Returns a hashed value generated form the name of the attribute |
int |
getAttributeType()
Returns java.sql type of the value in the item |
double |
getAttributeValueDouble()
Returns the value of the item, if its type is double |
int |
getAttributeValueInt()
Returns the value of the item, if its type is integer |
java.lang.String |
getAttributeValueString()
Returns the value of the item, if its type is string |
DiscInterval |
getDiscretedInterval()
Returns a discretized interval, if an item is discretized, else null |
java.lang.String |
getStringCondition()
Returns an SQL condition for WHERE clause corresponding to the content of the item |
int |
hashCode()
Returns a hashed code of the whole system - it takes both attribute name and its value |
boolean |
isAttributeDouble()
Tests if the attribute type is double |
boolean |
isAttributeInt()
Tests if the attribute type is integer |
boolean |
isAttributeString()
Tests if the attribute type is string |
boolean |
isDiscreted()
Tests if an item contains discretized interval |
void |
setDiscretedInterval(DiscInterval d)
Sets a discretized interval of the item |
java.lang.String |
toString()
Converts information about the item into a string |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public int type
Constructor Detail |
---|
public fitem(java.lang.String attribute_name, java.lang.String attribute_value)
attribute_name
- attribute of the itemattribute_value
- string value of the itempublic fitem(java.lang.String attribute_name, int attribute_value)
attribute_name
- attribute of the itemattribute_value
- integer value of the itempublic fitem(java.lang.String attribute_name, double attribute_value)
attribute_name
- attribute of the itemattribute_value
- double value of the itemMethod Detail |
---|
public DiscInterval getDiscretedInterval()
public void setDiscretedInterval(DiscInterval d)
d
- discretized intervalpublic boolean isDiscreted()
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String getAttributeName()
public int getAttributeNameMyHash()
public int getAttributeType()
public boolean isAttributeInt()
public boolean isAttributeString()
public boolean isAttributeDouble()
public java.lang.String getStringCondition()
public java.lang.String getAttributeValueString()
public int getAttributeValueInt()
public double getAttributeValueDouble()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object ofitem2)
equals
in class java.lang.Object
ofitem2
- the second item to compare
public boolean covers(fitem fitem2)
fitem2
- the second tested item
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |