|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectabsurdist.Concept
Class Concept specifies the data structure for a concept, which contains its name and some features.
| Field Summary | |
java.lang.String |
category
Nominal attribute, can be used to restrict mapping range. |
double |
d1
2D normalized values; can be extended to n-ary attribute vector. |
double |
d2
2D normalized values; can be extended to n-ary attribute vector. |
java.lang.String |
name
Unique identifier of this concept. |
int |
rank
Quantitative attribute in the range of [1, 10]; can be used to decide mapping priority. |
| Constructor Summary | |
Concept()
Creates an empty concept. |
|
Concept(Concept concept)
Creates a copy of a concept. |
|
Concept(Concept concept,
double noise)
Creates a copy of a concept with some noise added to the feature values. |
|
Concept(int i,
java.lang.String category)
Creates a concept with specified index and category and default features. |
|
Concept(int i,
java.util.Vector categories,
boolean ranked,
boolean valued)
Creates a concept with specified index and random features if indicated. |
|
Concept(java.lang.String name,
java.lang.String category,
int rank,
double d1,
double d2)
Creates a concept with full features. |
|
| Method Summary | |
void |
addNoise(double noise)
Adds some noise to this concept's feature values. |
double |
distance(Concept concept)
Computes the normalized semantic distance between this concept and the specified one. |
boolean |
isRanked()
Checks whether this concept is ranked, i.e. |
boolean |
isValued()
Checks whether this concept is valued, i.e. |
java.lang.String |
toString()
Returns a string representation of this concept. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public java.lang.String name
public java.lang.String category
public int rank
public double d1
public double d2
| Constructor Detail |
public Concept()
public Concept(int i,
java.lang.String category)
public Concept(int i,
java.util.Vector categories,
boolean ranked,
boolean valued)
public Concept(java.lang.String name,
java.lang.String category,
int rank,
double d1,
double d2)
public Concept(Concept concept)
public Concept(Concept concept,
double noise)
| Method Detail |
public void addNoise(double noise)
public boolean isRanked()
public boolean isValued()
public double distance(Concept concept)
public java.lang.String toString()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||