|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectweka.classifiers.lazy.kstar.KStarCache
public class KStarCache
A class representing the caching system used to keep track of each attribute value and its corresponding scale factor or stop parameter.
| Nested Class Summary | |
|---|---|
class |
KStarCache.CacheTable
A custom hashtable class to support the caching system. |
class |
KStarCache.TableEntry
Hashtable collision list. |
| Constructor Summary | |
|---|---|
KStarCache()
|
|
| Method Summary | |
|---|---|
boolean |
containsKey(double key)
Checks if the specified key maps with an entry in the cache table |
KStarCache.TableEntry |
getCacheValues(double key)
Returns the values in the cache mapped by the specified key |
java.lang.String |
getRevision()
Returns the revision string. |
void |
store(double key,
double value,
double pmiss)
Stores the specified values in the cahce table for easy retrieval. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public KStarCache()
| Method Detail |
|---|
public void store(double key,
double value,
double pmiss)
key - attribute value used key to lookup the cache table.value - cache parameter: attribute scale/stop parameter.pmiss - cache parameter: transformation probability to
attribute with missing value.public boolean containsKey(double key)
key - the key to map with an entry in the hashtable.public KStarCache.TableEntry getCacheValues(double key)
key - the key used to retrieve the table entry.public java.lang.String getRevision()
getRevision in interface RevisionHandler
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||