|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectgov.sandia.cognition.framework.learning.converter.CogxelMatrixConverter
public class CogxelMatrixConverter
The CogxelVectorConverter implements a converter to convert Cogxels to and from Matrix objects.
| Constructor Summary | |
|---|---|
CogxelMatrixConverter(ArrayList<CogxelVectorConverter> columnConverters)
Creates a new instance of CogxelMatrixConverter |
|
CogxelMatrixConverter(ArrayList<CogxelVectorConverter> columnConverters,
SemanticIdentifierMap semanticIdentifierMap)
Creates a new instance of CogxelMatrixConverter |
|
CogxelMatrixConverter(CogxelMatrixConverter other)
Copy constructor |
|
CogxelMatrixConverter(Iterable<SemanticLabel>... columns)
Creates a new instance of CogxelMatrixConverter |
|
| Method Summary | |
|---|---|
CogxelMatrixConverter |
clone()
|
gov.sandia.cognition.math.matrix.Matrix |
fromCogxels(CogxelState cogxels)
Converts from a CogxelState object to an object of type DataType. |
ArrayList<CogxelVectorConverter> |
getColumnConverters()
Getter for columnConverters |
SemanticIdentifierMap |
getSemanticIdentifierMap()
Gets the SemanticIdentifierMap used by this converter. |
protected void |
setColumnConverters(ArrayList<CogxelVectorConverter> columnConverters)
Setter for columnConverters |
void |
setSemanticIdentifierMap(SemanticIdentifierMap semanticIdentifierMap)
Sets the SemanticIdentifierMap that the converter is to use. |
void |
toCogxels(gov.sandia.cognition.math.matrix.Matrix data,
CogxelState cogxels)
Converts from an object of type DataType to an updated CogxelState. |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CogxelMatrixConverter(Iterable<SemanticLabel>... columns)
columns - Iterable of SemanticLabels to create CogxelVectorConverters frompublic CogxelMatrixConverter(ArrayList<CogxelVectorConverter> columnConverters)
columnConverters - Collection CogxelVectorConverters that convert the columns of the matrix
public CogxelMatrixConverter(ArrayList<CogxelVectorConverter> columnConverters,
SemanticIdentifierMap semanticIdentifierMap)
columnConverters - Collection CogxelVectorConverters that convert the columns of the matrixsemanticIdentifierMap - SemanticIdentifierMap for the converterpublic CogxelMatrixConverter(CogxelMatrixConverter other)
other - CogxelMatrixConverter to clone| Method Detail |
|---|
public CogxelMatrixConverter clone()
clone in interface CogxelConverter<gov.sandia.cognition.math.matrix.Matrix>clone in interface gov.sandia.cognition.util.CloneableSerializableclone in class Objectpublic SemanticIdentifierMap getSemanticIdentifierMap()
getSemanticIdentifierMap in interface CogxelConverter<gov.sandia.cognition.math.matrix.Matrix>public void setSemanticIdentifierMap(SemanticIdentifierMap semanticIdentifierMap)
setSemanticIdentifierMap in interface CogxelConverter<gov.sandia.cognition.math.matrix.Matrix>semanticIdentifierMap - The SemanticIdentifierMap the converter is
to use.public gov.sandia.cognition.math.matrix.Matrix fromCogxels(CogxelState cogxels)
fromCogxels in interface CogxelConverter<gov.sandia.cognition.math.matrix.Matrix>cogxels - The CogxelState to convert to DataType.
public void toCogxels(gov.sandia.cognition.math.matrix.Matrix data,
CogxelState cogxels)
toCogxels in interface CogxelConverter<gov.sandia.cognition.math.matrix.Matrix>data - The object to convert into the CogxelState.cogxels - The CogxelState to update with the converted data.public ArrayList<CogxelVectorConverter> getColumnConverters()
protected void setColumnConverters(ArrayList<CogxelVectorConverter> columnConverters)
columnConverters - Collection CogxelVectorConverters that convert the columns of the matrix
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||