|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface SparseDistributedMemory
Implementation of Kanerva's sparse distributed memory. This implementation is based on the model described in P. Kanerva, "Sparse Distributed Memory and Related Models" in Associative Neural Memories: Theory and Implementation , pp. 50-76, Oxford University Press, 1993.
Method Summary | |
---|---|
void |
mappedStore(cern.colt.bitvector.BitVector word,
cern.colt.bitvector.BitVector mapping)
Stores word in this sparse distributed memory using the word as address. |
cern.colt.bitvector.BitVector |
retrieve(cern.colt.bitvector.BitVector addr)
Retrieves the contents of this sparse distributed memory at the given address. |
cern.colt.bitvector.BitVector |
retrieve(cern.colt.bitvector.BitVector addr,
cern.colt.bitvector.BitVector mapping)
Retrieves the contents of this SDM at specified address. |
cern.colt.bitvector.BitVector |
retrieveIterating(cern.colt.bitvector.BitVector addr)
Retrieves the contents of this sparse distributed memory at the given address iterating this process until result is equal to the address. |
cern.colt.bitvector.BitVector |
retrieveIterating(cern.colt.bitvector.BitVector addr,
cern.colt.bitvector.BitVector mapping)
Retrieves the contents of this SDM at specified address. |
void |
store(cern.colt.bitvector.BitVector word)
Stores word in this sparse distributed memory using the word as address. |
void |
store(cern.colt.bitvector.BitVector word,
cern.colt.bitvector.BitVector addr)
Stores word in the given address in this sparse distributed memory. |
Method Detail |
---|
void store(cern.colt.bitvector.BitVector word, cern.colt.bitvector.BitVector addr)
word
- the word to be storedaddr
- the address where the word is to be storedvoid store(cern.colt.bitvector.BitVector word)
word
- the word to be storedvoid mappedStore(cern.colt.bitvector.BitVector word, cern.colt.bitvector.BitVector mapping)
word
- the word to be stored.mapping
- the mapping address.cern.colt.bitvector.BitVector retrieve(cern.colt.bitvector.BitVector addr)
addr
- the address of the contents to be retrieved
cern.colt.bitvector.BitVector retrieveIterating(cern.colt.bitvector.BitVector addr)
addr
- the address of the contents to be retrieved
cern.colt.bitvector.BitVector retrieveIterating(cern.colt.bitvector.BitVector addr, cern.colt.bitvector.BitVector mapping)
addr
- BitVector
address that is being retrievedmapping
- mapping to use
cern.colt.bitvector.BitVector retrieve(cern.colt.bitvector.BitVector addr, cern.colt.bitvector.BitVector mapping)
BitVector
is mapped back before it is returned.
addr
- the address vectormapping
- the mapping vector
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |