|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--edu.uiuc.ge.illigal.gale.data.Attribute
Attribute class contains the information for an attribute of the data set.
Field Summary | |
protected float |
fLowerBound
Lower bound of the attribute |
protected float |
fMaxValue
Maximum value of the attribute |
protected float |
fMinValue
Minimum value of the attribute |
protected float |
fUpperBound
Upper bound of the attribute |
protected java.util.Hashtable |
htTagsMap
Hash table for tags translation |
static int |
INTEGER
Constant definition for a integer-valued attribute |
protected int |
iPos
Index position |
protected int |
iType
Type of the attribute |
static int |
NOMINAL
Constant definition for a nominal attribute |
static int |
REAL
Constant definition for a real-valued attribute |
protected java.lang.String |
sName
The attribute name |
protected java.util.Vector |
vecTags
Set of tags for nominal attributes |
Constructor Summary | |
Attribute(java.lang.String name,
int type,
int pos,
java.util.Vector tags)
Builds and initializes an attribute |
Method Summary | |
float |
distance()
Returns the distance of bounds. |
int |
index()
Returns the attribute index position |
float |
lowerBound()
Returns the lowerBound for an attribute. |
float |
maximum()
Returns the maximum value for an attribute. |
float |
minimum()
Returns the minimum value for an attribute. |
java.lang.String |
name()
Returns the name of the attribute |
void |
setLowerBound(float lb)
Sets the lowerBound for an attribute. |
void |
setMaximum(float max)
Sets the maximum value for an attribute. |
void |
setMinimum(float min)
Sets the minimum value for an attribute. |
void |
setUpperBound(float ub)
Sets the upperBound for an attribute. |
java.lang.String |
tag(int i)
Returns the tag for the requested nominal index. |
int |
tagValue(java.lang.String tag)
Returns the index of nominal tag |
java.lang.String |
toString()
Returns the string representation of the attribute |
int |
type()
Returns the type of the attribute |
float |
upperBound()
Returns the upperBound for an attribute. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final int NOMINAL
public static final int REAL
public static final int INTEGER
protected java.lang.String sName
protected int iType
protected float fMaxValue
protected float fMinValue
protected float fUpperBound
protected float fLowerBound
protected int iPos
protected java.util.Vector vecTags
protected java.util.Hashtable htTagsMap
Constructor Detail |
public Attribute(java.lang.String name, int type, int pos, java.util.Vector tags)
name
- The attribute nametype
- The attribute typepos
- The attribute position in the data setMethod Detail |
public java.lang.String name()
public int type()
public float maximum()
public float upperBound()
public float minimum()
public float lowerBound()
public void setMaximum(float max)
max
- the upper boundpublic void setUpperBound(float ub)
ub
- the upper boundpublic void setMinimum(float min)
min
- the upper boundpublic void setLowerBound(float lb)
lb
- the lower boundpublic int index()
public java.lang.String tag(int i)
i
- the nominal index position
public int tagValue(java.lang.String tag)
tag
- the tag
public float distance()
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |