|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface NominalMapping
This class is used to map between the nominal values for a certain attribute and the internal double value representations which is used for nominal values in order to reduce memory usage.
| Method Summary | |
|---|---|
void |
clear()
Clears the mapping. |
java.lang.Object |
clone()
Should return a deep clone of this nominal mapping. |
int |
getIndex(java.lang.String nominalValue)
Returns the internal double representation (actually an integer index) for the given nominal value without creating a mapping if none exists. |
int |
getNegativeIndex()
Returns the index of a negative class (if available). |
java.lang.String |
getNegativeString()
Returns the nominal value of a negative class (if available). |
int |
getPositiveIndex()
Returns the index of a positive class (if available). |
java.lang.String |
getPositiveString()
Returns the nominal value of a positive class (if available). |
java.util.List<java.lang.String> |
getValues()
Returns a list of all nominal values which were mapped via mapString(String)
until now. |
java.lang.String |
mapIndex(int index)
Returns the nominal value for an internal double representation (actually an integer index). |
int |
mapString(java.lang.String nominalValue)
Returns the internal double representation (actually an integer index) for the given nominal value. |
void |
setMapping(java.lang.String nominalValue,
int index)
Sets the given mapping. |
int |
size()
Returns the number of different nominal values which were mapped via mapString(String) until now. |
void |
sortMappings()
This method rearranges the string to number mappings such that they are in alphabetical order. |
| Method Detail |
|---|
java.lang.Object clone()
int getPositiveIndex()
java.lang.String getPositiveString()
int getNegativeIndex()
java.lang.String getNegativeString()
int getIndex(java.lang.String nominalValue)
int mapString(java.lang.String nominalValue)
java.lang.String mapIndex(int index)
mapString(String).
void setMapping(java.lang.String nominalValue,
int index)
java.util.List<java.lang.String> getValues()
mapString(String)
until now.
int size()
mapString(String) until now.
void sortMappings()
AbstractExampleTable and it already
contains Examples. All examples will be messed up otherwise!
void clear()
|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||