public class ArrayBasedCognitiveModelInput extends java.lang.Object implements CognitiveModelInput, java.io.Serializable
Constructor and Description |
---|
ArrayBasedCognitiveModelInput(SemanticIdentifier[] identifiers,
double[] values)
Creates a new instance of ArrayBasedCognitiveModelInput using the two
given arrays underneath by copying them.
|
ArrayBasedCognitiveModelInput(SemanticIdentifier[] identifiers,
double[] values,
boolean copy)
Creates a new instance of ArrayBasedCognitiveModelInput using the two
given arrays underneath.
|
Modifier and Type | Method and Description |
---|---|
SemanticIdentifier |
getIdentifier(int index)
Gets the SemanticIdentifier of the given index in the array.
|
protected SemanticIdentifier[] |
getIdentifiers()
Gets the array of identifiers.
|
int |
getNumInputs()
Gets the number of inputs in the array.
|
double |
getValue(int index)
Gets the activation value of the given index in the array.
|
protected double[] |
getValues()
Gets the array of activation values.
|
public ArrayBasedCognitiveModelInput(SemanticIdentifier[] identifiers, double[] values)
identifiers
- The array of identifiers.values
- The array of values.public ArrayBasedCognitiveModelInput(SemanticIdentifier[] identifiers, double[] values, boolean copy)
identifiers
- The array of identifiers.values
- The array of values.copy
- True to copy the given arrays and false to just use
references to them.public SemanticIdentifier getIdentifier(int index)
index
- The index of the SemanticIdentifier to get from the array.public double getValue(int index)
index
- The index of the activation value to get from the array.public int getNumInputs()
protected final SemanticIdentifier[] getIdentifiers()
protected final double[] getValues()