|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectgov.sandia.cognition.framework.learning.converter.CogxelWeightedInputOutputPairConverter<InputType,OutputType>
InputType - Type of input to convert into the inputs of the
InputOutputPairsOutputType - Type of outputs to convert into the outputs of the
InputOutputPairspublic class CogxelWeightedInputOutputPairConverter<InputType,OutputType>
A CogxelConverter for creating WeightedInputOutputPairs
| Constructor Summary | |
|---|---|
CogxelWeightedInputOutputPairConverter()
Creates a new instance of CogxelWeightedInputOutputPairConverter |
|
CogxelWeightedInputOutputPairConverter(CogxelConverter<InputType> inputConverter,
CogxelConverter<OutputType> outputConverter,
CogxelConverter<Double> weightConverter)
Creates a new instance of CogxelWeightedInputOutputPairConverter |
|
CogxelWeightedInputOutputPairConverter(CogxelWeightedInputOutputPairConverter other)
Copy constructor |
|
| Method Summary | |
|---|---|
CogxelWeightedInputOutputPairConverter<InputType,OutputType> |
clone()
|
WeightedInputOutputPair<InputType,OutputType> |
fromCogxels(CogxelState cogxels)
Converts from a CogxelState object to an object of type DataType. |
CogxelInputOutputPairConverter<InputType,OutputType> |
getPairConverter()
Getter for pairConverter |
SemanticIdentifierMap |
getSemanticIdentifierMap()
Gets the SemanticIdentifierMap used by this converter. |
CogxelConverter<Double> |
getWeightConverter()
Getter for weightConverter |
void |
setPairConverter(CogxelInputOutputPairConverter<InputType,OutputType> pairConverter)
Setter for pairConverter |
void |
setSemanticIdentifierMap(SemanticIdentifierMap semanticIdentifierMap)
Sets the SemanticIdentifierMap that the converter is to use. |
void |
setWeightConverter(CogxelConverter<Double> weightConverter)
Setter for weightConverter |
void |
toCogxels(WeightedInputOutputPair<InputType,OutputType> 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 CogxelWeightedInputOutputPairConverter()
public CogxelWeightedInputOutputPairConverter(CogxelConverter<InputType> inputConverter,
CogxelConverter<OutputType> outputConverter,
CogxelConverter<Double> weightConverter)
inputConverter - Converts Cogxels for the inputoutputConverter - Converts Cogxels for the outputweightConverter - Converts the Cogxel for the weightpublic CogxelWeightedInputOutputPairConverter(CogxelWeightedInputOutputPairConverter other)
other - Object to clone| Method Detail |
|---|
public CogxelWeightedInputOutputPairConverter<InputType,OutputType> clone()
clone in interface CogxelConverter<WeightedInputOutputPair<InputType,OutputType>>clone in interface gov.sandia.cognition.util.CloneableSerializableclone in class Objectpublic CogxelConverter<Double> getWeightConverter()
public void setWeightConverter(CogxelConverter<Double> weightConverter)
weightConverter - Adds the weight to the InputOutputPairpublic WeightedInputOutputPair<InputType,OutputType> fromCogxels(CogxelState cogxels)
fromCogxels in interface CogxelConverter<WeightedInputOutputPair<InputType,OutputType>>cogxels - The CogxelState to convert to DataType.
public void toCogxels(WeightedInputOutputPair<InputType,OutputType> data,
CogxelState cogxels)
toCogxels in interface CogxelConverter<WeightedInputOutputPair<InputType,OutputType>>data - The object to convert into the CogxelState.cogxels - The CogxelState to update with the converted data.public CogxelInputOutputPairConverter<InputType,OutputType> getPairConverter()
public void setPairConverter(CogxelInputOutputPairConverter<InputType,OutputType> pairConverter)
pairConverter - Creates the underlying InputOutputPairpublic SemanticIdentifierMap getSemanticIdentifierMap()
getSemanticIdentifierMap in interface CogxelConverter<WeightedInputOutputPair<InputType,OutputType>>public void setSemanticIdentifierMap(SemanticIdentifierMap semanticIdentifierMap)
setSemanticIdentifierMap in interface CogxelConverter<WeightedInputOutputPair<InputType,OutputType>>semanticIdentifierMap - The SemanticIdentifierMap the converter is
to use.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||