|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
The interface for a structure used to cache information about link similarity. Used in ABSURDIST's for fast excitation computation. The interface can be implemented as a hash table using the (Link,Link) pair as a key, or in a more complex way.
| Method Summary | |
double |
get(Link lo,
Link ln)
Retrieves the value representing Sim(lo,ln), or NaN if none was stored) |
double |
put(Link lo,
Link ln,
double val)
Stores the value representing Sim(lo,ln). |
void |
setSizes(int loCnt,
int lnCnt)
Tell the table how much data will be stored: maximum number of distinct lo and ln Links. |
int |
size()
Returns the number of values stored |
| Method Detail |
public void setSizes(int loCnt,
int lnCnt)
loCnt - How many distinct values for the first argument
to put() are expected.lnCnt - How many distinct values for the second argument
to put() are expected.
public double put(Link lo,
Link ln,
double val)
public double get(Link lo,
Link ln)
public int size()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||