|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.memphis.ccrg.lida.episodicmemory.sdm.SparseDistributedMemoryImpl
public class SparseDistributedMemoryImpl
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.
| Constructor Summary | |
|---|---|
SparseDistributedMemoryImpl(int memorySize,
int radius,
int wordLength)
Constructs a new SparseDistributedMemory with equal address and word sizes |
|
SparseDistributedMemoryImpl(int memorySize,
int radius,
int wordLength,
int addrLength)
Constructs a new SparseDistributedMemory with specified parameters |
|
| Method Summary | |
|---|---|
void |
mappedStore(cern.colt.bitvector.BitVector wrd,
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 wrd)
Stores word in this sparse distributed memory using the word as address. |
void |
store(cern.colt.bitvector.BitVector wrd,
cern.colt.bitvector.BitVector addr)
Stores word in the given address in this sparse distributed memory. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SparseDistributedMemoryImpl(int memorySize,
int radius,
int wordLength)
SparseDistributedMemory with equal address and word sizes
memorySize - number of hard locationsradius - the activation radius used to find the nearest hard locationswordLength - the word size and the address size
public SparseDistributedMemoryImpl(int memorySize,
int radius,
int wordLength,
int addrLength)
SparseDistributedMemory with specified parameters
memorySize - the number of hard locationradius - the activation radius used to find the nearest hard locationswordLength - size of vectors stored at hard locationsaddrLength - the address size| Method Detail |
|---|
public void store(cern.colt.bitvector.BitVector wrd,
cern.colt.bitvector.BitVector addr)
SparseDistributedMemory
store in interface SparseDistributedMemorywrd - the word to be storedaddr - the address where the word is to be storedpublic void store(cern.colt.bitvector.BitVector wrd)
SparseDistributedMemory
store in interface SparseDistributedMemorywrd - the word to be stored
public void mappedStore(cern.colt.bitvector.BitVector wrd,
cern.colt.bitvector.BitVector mapping)
SparseDistributedMemory
mappedStore in interface SparseDistributedMemorywrd - the word to be stored.mapping - the mapping address.public cern.colt.bitvector.BitVector retrieve(cern.colt.bitvector.BitVector addr)
SparseDistributedMemory
retrieve in interface SparseDistributedMemoryaddr - the address of the contents to be retrieved
public cern.colt.bitvector.BitVector retrieve(cern.colt.bitvector.BitVector addr,
cern.colt.bitvector.BitVector mapping)
SparseDistributedMemoryBitVector is mapped back before it is returned.
retrieve in interface SparseDistributedMemoryaddr - the address vectormapping - the mapping vector
public cern.colt.bitvector.BitVector retrieveIterating(cern.colt.bitvector.BitVector addr)
SparseDistributedMemory
retrieveIterating in interface SparseDistributedMemoryaddr - the address of the contents to be retrieved
public cern.colt.bitvector.BitVector retrieveIterating(cern.colt.bitvector.BitVector addr,
cern.colt.bitvector.BitVector mapping)
SparseDistributedMemory
retrieveIterating in interface SparseDistributedMemoryaddr - BitVector address that is being retrievedmapping - mapping to use
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||