Package | Description |
---|---|
gov.sandia.cognition.framework |
Provides the interfaces for the Cognitive Framework.
|
gov.sandia.cognition.framework.learning.converter |
Provides implementations of
CogxelConverter s. |
gov.sandia.cognition.framework.lite |
Provides a lightweight implementation of the Cognitive Framework.
|
Modifier and Type | Class and Description |
---|---|
class |
DefaultSemanticLabel
This class implements a semantic label using a string.
|
Modifier and Type | Method and Description |
---|---|
SemanticLabel |
DefaultSemanticIdentifier.getLabel()
Gets the SemanticLabel.
|
SemanticLabel |
SemanticIdentifier.getLabel()
Gets the SemanticLabel.
|
SemanticLabel |
Cogxel.getSemanticLabel()
Gets the SemanticLabel for the Cogxel.
|
SemanticLabel |
DefaultCogxel.getSemanticLabel()
Gets the SemanticLabel for the Cogxel.
|
Modifier and Type | Method and Description |
---|---|
protected java.util.LinkedHashMap<SemanticLabel,SemanticIdentifier> |
DefaultSemanticIdentifierMap.getMapping()
Getter for mapping.
|
java.util.Collection<SemanticLabel> |
DefaultSemanticNetwork.getNodes()
Gets the nodes that are in the network.
|
java.util.Collection<SemanticLabel> |
SemanticNetwork.getNodes()
Gets the nodes that are in the network.
|
java.util.Collection<SemanticLabel> |
DefaultSemanticNetwork.getOutLinks(SemanticLabel nodeLabel)
Gets the outgoing links from a given node.
|
java.util.Collection<SemanticLabel> |
SemanticNetwork.getOutLinks(SemanticLabel nodeLabel)
Gets the outgoing links from a given node.
|
Modifier and Type | Method and Description |
---|---|
SemanticIdentifier |
DefaultSemanticIdentifierMap.addLabel(SemanticLabel label)
Adds a SemanticLabel to the map, or returns an existing
SemanticIdentifier if already in the map
|
SemanticIdentifier |
SemanticIdentifierMap.addLabel(SemanticLabel label)
Adds a SemanticLabel to the map, or returns an existing
SemanticIdentifier if already in the map
|
void |
DefaultSemanticNetwork.addNode(SemanticLabel nodeLabel)
Adds a node to the semantic network.
|
SemanticIdentifier |
DefaultSemanticIdentifierMap.findIdentifier(SemanticLabel label)
Queries into the map to find a SemanticLabel
|
SemanticIdentifier |
SemanticIdentifierMap.findIdentifier(SemanticLabel label)
Queries into the map to find a SemanticLabel
|
double |
DefaultSemanticNetwork.getAssociation(SemanticLabel from,
SemanticLabel to)
Gets the association between two nodes in the network.
|
double |
SemanticNetwork.getAssociation(SemanticLabel from,
SemanticLabel to)
Gets the association between two nodes in the network.
|
java.util.Collection<SemanticLabel> |
DefaultSemanticNetwork.getOutLinks(SemanticLabel nodeLabel)
Gets the outgoing links from a given node.
|
java.util.Collection<SemanticLabel> |
SemanticNetwork.getOutLinks(SemanticLabel nodeLabel)
Gets the outgoing links from a given node.
|
boolean |
DefaultSemanticNetwork.isNode(SemanticLabel label)
Returns true if the given SemanticLabel is a node in the
SemanticNetwork.
|
boolean |
SemanticNetwork.isNode(SemanticLabel label)
Returns true if the given SemanticLabel is a node in the
SemanticNetwork.
|
void |
DefaultSemanticNetwork.removeNode(SemanticLabel nodeLabel)
Removes a node from the semantic network including all of the incoming
and outgoing links of the node.
|
void |
DefaultSemanticNetwork.setAssociation(SemanticLabel from,
SemanticLabel to,
double weight)
Sets the association between two nodes in the network.
|
Modifier and Type | Method and Description |
---|---|
java.util.ArrayList<SemanticIdentifier> |
DefaultSemanticIdentifierMap.addLabels(java.util.Collection<SemanticLabel> labels)
Adds a list of SemanticLabels to the map, returning the list of
the corresponding SemanticIdentifiers for the given SemanticLabels.
|
java.util.ArrayList<SemanticIdentifier> |
SemanticIdentifierMap.addLabels(java.util.Collection<SemanticLabel> labels)
Adds a list of SemanticLabels to the map, returning the list of
the corresponding SemanticIdentifiers for the given SemanticLabels.
|
protected void |
DefaultSemanticIdentifierMap.setMapping(java.util.LinkedHashMap<SemanticLabel,SemanticIdentifier> mapping)
Sets the mapping used by the object.
|
Constructor and Description |
---|
DefaultSemanticIdentifier(SemanticLabel label,
int identifier)
Creates a new instance of SemanticIdentifier.
|
Modifier and Type | Method and Description |
---|---|
SemanticLabel |
CogxelBooleanConverter.getLabel()
Gets the label of the cogxel to convert.
|
SemanticLabel |
CogxelDoubleConverter.getLabel()
Gets the label of the Cogxel to convert.
|
Modifier and Type | Method and Description |
---|---|
java.util.ArrayList<SemanticLabel> |
CogxelVectorConverter.getLabels()
Gets the labels used by the converter, each one corresponding to one
dimension in the converted Vector.
|
Modifier and Type | Method and Description |
---|---|
void |
CogxelVectorConverter.addLabel(SemanticLabel label)
Adds the given SemanticLabel to the list of labels used by the
converter.
|
void |
CogxelVectorConverter.addLabels(SemanticLabel[] labels)
Adds all of the given labels to the converter.
|
protected void |
CogxelVectorConverter.addLabelToIdentifierCache(SemanticLabel label)
Adds the given label to the cache of SemanticIdentifiers.
|
void |
CogxelBooleanConverter.setLabel(SemanticLabel label)
Sets the label of the cogxel to convert.
|
void |
CogxelDoubleConverter.setLabel(SemanticLabel label)
Sets the label of the Cogxel to convert.
|
Modifier and Type | Method and Description |
---|---|
void |
CogxelVectorConverter.addLabels(java.lang.Iterable<SemanticLabel> labels)
Adds all of the given labels to the converter.
|
void |
CogxelVectorConverter.setLabels(java.util.ArrayList<SemanticLabel> labels)
Sets the labels to be used by the converter, each one corresponding to
one dimension in the converted Vector.
|
Constructor and Description |
---|
CogxelBooleanConverter(SemanticLabel label)
Creates a new instance of CogxelDoubleConverter.
|
CogxelBooleanConverter(SemanticLabel label,
SemanticIdentifierMap semanticIdentifierMap)
Creates a new instance of CogxelBooleanConverter.
|
CogxelBooleanConverter(SemanticLabel label,
SemanticIdentifierMap semanticIdentifierMap,
CogxelFactory cogxelFactory)
Creates a new instance of CogxelBooleanConverter.
|
CogxelDoubleConverter(SemanticLabel label)
Creates a new instance of CogxelDoubleConverter.
|
CogxelDoubleConverter(SemanticLabel label,
SemanticIdentifierMap semanticIdentifierMap)
Creates a new instance of CogxelDoubleConverter.
|
CogxelDoubleConverter(SemanticLabel label,
SemanticIdentifierMap semanticIdentifierMap,
CogxelFactory cogxelFactory)
Creates a new instance of CogxelDoubleConverter.
|
CogxelVectorConverter(SemanticLabel... labels)
Creates a new CogxelVectorConverter from the given labels.
|
CogxelVectorConverter(SemanticLabel[] labels,
SemanticIdentifierMap semanticIdentifierMap)
Creates a new CogxelVectorConverter from the given SemanticIdentifierMap
and SemanticLabels.
|
CogxelVectorConverter(SemanticLabel[] labels,
SemanticIdentifierMap semanticIdentifierMap,
VectorFactory<?> vectorFactory,
CogxelFactory cogxelFactory)
Creates a new CogxelVectorConverter
|
Constructor and Description |
---|
CogxelMatrixConverter(java.util.Collection<? extends java.lang.Iterable<SemanticLabel>> columns)
Creates a new instance of CogxelMatrixConverter
|
CogxelVectorConverter(java.lang.Iterable<SemanticLabel> labels)
Creates a new CogxelVectorConverter from the given labels.
|
CogxelVectorConverter(java.lang.Iterable<SemanticLabel> labels,
SemanticIdentifierMap semanticIdentifierMap)
Creates a new CogxelVectorConverter from the given SemanticIdentifierMap
and SemanticLabels.
|
CogxelVectorConverter(java.lang.Iterable<SemanticLabel> labels,
SemanticIdentifierMap semanticIdentifierMap,
VectorFactory<?> vectorFactory,
CogxelFactory cogxelFactory)
Creates a new CogxelVectorConverter.
|
Modifier and Type | Method and Description |
---|---|
java.util.Collection<SemanticLabel> |
PatternRecognizerLite.getAllLabels()
Gets the collection of all the labels used in the recognizer.
|
java.util.Collection<SemanticLabel> |
SimplePatternRecognizer.getAllLabels()
Gets the collection of all the labels used in the recognizer.
|
java.util.Collection<SemanticLabel> |
PatternRecognizerLite.getInputLabels()
Gets the labels for the dimensions of the input vector.
|
java.util.Collection<SemanticLabel> |
SimplePatternRecognizer.getInputLabels()
Gets the labels for the dimensions of the input vector.
|
java.util.List<SemanticLabel> |
SimplePatternRecognizerState.getLabels()
Gets the labels corresponding to the dimensions of the state.
|
java.util.Collection<SemanticLabel> |
PatternRecognizerLite.getOutputLabels()
Gets the labels for the dimensions of the output vector.
|
java.util.Collection<SemanticLabel> |
SimplePatternRecognizer.getOutputLabels()
Gets the labels for the dimensions of the output vector.
|
Modifier and Type | Method and Description |
---|---|
void |
MutablePatternRecognizerLite.addNode(SemanticLabel label)
Adds a node to the pattern recognizer.
|
void |
MutableSemanticMemoryLite.addNode(SemanticLabel label)
Adds a node to the semantic memory.
|
void |
SimplePatternRecognizer.addNode(SemanticLabel label)
Adds a node to the pattern recognizer.
|
protected void |
MutableSemanticMemoryLite.assertArgumentIsNode(SemanticLabel label)
Asserts that the given argument is a node, throwing an
IllegalArgumentException if it is not a node.
|
double |
SimplePatternRecognizer.getAssociation(SemanticLabel from,
SemanticLabel to)
Gets the association between two nodes in the network.
|
int |
SimplePatternRecognizer.getIndex(SemanticLabel label)
Gets the index in the vector of the given label.
|
boolean |
PatternRecognizerLite.isInputLabel(SemanticLabel label)
Takes a SemanticLabel and returns true if it is a label used to
provide input to the PatternRecognizerLite.
|
boolean |
SimplePatternRecognizer.isInputLabel(SemanticLabel label)
Takes a SemanticLabel and returns true if it is a label used to
provide input to the PatternRecognizerLite.
|
boolean |
PatternRecognizerLite.isLabel(SemanticLabel label)
Takes a SemanticLabel and returns true if the PatternRecognizer
uses it.
|
boolean |
SimplePatternRecognizer.isLabel(SemanticLabel label)
Takes a SemanticLabel and returns true if the PatternRecognizer
uses it.
|
boolean |
MutableSemanticMemoryLite.isNode(SemanticLabel label)
Returns true if the given semantic label is a node in the network.
|
boolean |
PatternRecognizerLite.isOutputLabel(SemanticLabel label)
Takes a SemanticLabel and returns true if it is a label used as
output from the PatternRecognizerLite.
|
boolean |
SimplePatternRecognizer.isOutputLabel(SemanticLabel label)
Takes a SemanticLabel and returns true if it is a label used as
output from the PatternRecognizerLite.
|
void |
MutablePatternRecognizerLite.removeNode(SemanticLabel label)
Removes a node and all links associated with that node from the pattern
recognizer.
|
void |
MutableSemanticMemoryLite.removeNode(SemanticLabel label)
Removes a node and all links associated with that node from the semantic
memory.
|
void |
SimplePatternRecognizer.removeNode(SemanticLabel label)
Removes a node and all links associated with that node from the pattern
recognizer.
|
void |
MutablePatternRecognizerLite.setAssociation(SemanticLabel from,
SemanticLabel to,
double weight)
Sets the association between nodes in the recognizer.
|
void |
MutableSemanticMemoryLite.setAssociation(SemanticLabel from,
SemanticLabel to,
double weight)
Sets the association between nodes in the recognizer.
|
void |
SimplePatternRecognizer.setAssociation(SemanticLabel from,
SemanticLabel to,
double weight)
Sets the association between nodes in the recognizer.
|
boolean |
MutablePatternRecognizerLite.trySetInputLabel(SemanticLabel label,
boolean inputLabel)
Attempts to set whether or not the given label is an input label.
|
boolean |
MutableSemanticMemoryLite.trySetInputLabel(SemanticLabel label,
boolean inputLabel)
Attempts to set whether or not the given label is an input label.
|
boolean |
SimplePatternRecognizer.trySetInputLabel(SemanticLabel label,
boolean inputLabel)
Attempts to set whether or not the given label is an input label.
|
boolean |
MutablePatternRecognizerLite.trySetOutputLabel(SemanticLabel label,
boolean outputLabel)
Attempts to set whether or not the given label is an output label.
|
boolean |
MutableSemanticMemoryLite.trySetOutputLabel(SemanticLabel label,
boolean outputLabel)
Attempts to set whether or not the given label is an output label.
|
boolean |
SimplePatternRecognizer.trySetOutputLabel(SemanticLabel label,
boolean outputLabel)
Attempts to set whether or not the given label is an output label.
|
Modifier and Type | Method and Description |
---|---|
void |
SimplePatternRecognizerState.setLabels(java.util.Collection<SemanticLabel> labels)
Sets the labels for the state to keep as the labels of the dimensions
of the state.
|
protected void |
SimplePatternRecognizer.setNodes(java.util.ArrayList<SemanticLabel> nodes)
Sets the nodes in the recognizer.
|
protected void |
SimplePatternRecognizer.setNodeToIDMap(java.util.HashMap<SemanticLabel,java.lang.Integer> nodeToIDMap)
Sets the mapping of nodes to their vector indices.
|
Constructor and Description |
---|
SimplePatternRecognizerState(java.util.Collection<SemanticLabel> labels)
Creates a new instance of SimplePatternRecognizerState.
|
SimplePatternRecognizerState(java.util.Collection<SemanticLabel> labels,
Vector stateVector)
Creats a new instance of SimplePatternRecognizerState.
|
SimplePatternRecognizerState(java.util.Collection<SemanticLabel> labels,
Vector stateVector,
boolean copyState)
Creats a new instance of SimplePatternRecognizerState.
|