infomat.bridges.jsdm
Class JSDMWrapper
java.lang.Object
infomat.bridges.jsdm.JSDMWrapper
- All Implemented Interfaces:
- HasProperties
public class JSDMWrapper
- extends java.lang.Object
- implements HasProperties
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
properties
Properties properties
sdm
private SparseDistributedMemory sdm
numberOfLabels
private int numberOfLabels
ioReprMap
private java.util.HashMap<IObject,float[]> ioReprMap
wrappedGroup
private IObjectGroup wrappedGroup
numberOfIOsNotInSDM
private int numberOfIOsNotInSDM
fullGroup
private IObjectGroup fullGroup
JSDMWrapper
public JSDMWrapper()
JSDMWrapper
public JSDMWrapper(Properties properties)
getDefaultProperties
public Properties getDefaultProperties()
- Specified by:
getDefaultProperties
in interface HasProperties
getPropertyValue
public java.lang.Object getPropertyValue(java.lang.String name)
- Specified by:
getPropertyValue
in interface HasProperties
setProperty
public void setProperty(java.lang.String name,
java.lang.Object value)
throws PropertyNotFoundException
- Specified by:
setProperty
in interface HasProperties
- Throws:
PropertyNotFoundException
getProperties
public Properties getProperties()
- Specified by:
getProperties
in interface HasProperties
setProperties
public void setProperties(Properties properties)
- Specified by:
setProperties
in interface HasProperties
load
public void load(java.lang.String fileName)
- Loads.
load
public void load(java.lang.String fileName,
IObjectGroup group)
- Loads.
wrap
private void wrap(IObjectGroup iog)
normalize
private void normalize(float[] repr)
getWrappedRepresentation
public float[] getWrappedRepresentation(IObject io)
getRandomLabel
public RandomLabel getRandomLabel(java.lang.String word)
getWrappedIObjectGroup
public IObjectGroup getWrappedIObjectGroup()
getFullIObjectGroup
public IObjectGroup getFullIObjectGroup()