org.encog.util.normalize.input
public class InputFieldArray1D extends BasicInputField implements HasFixedLength
Constructor and Description |
---|
InputFieldArray1D(boolean usedForNetworkInput,
double[] array)
Construct the 1D array field.
|
Modifier and Type | Method and Description |
---|---|
double |
getValue(int i)
Get the value from the specified index.
|
int |
length() |
applyMinMax, getCurrentValue, getMax, getMin, getUsedForNetworkInput, setCurrentValue, setMax, setMin, setUsedForNetworkInput
public InputFieldArray1D(boolean usedForNetworkInput, double[] array)
usedForNetworkInput
- True if this field is used for the actual
input to the neural network. See getUsedForNetworkInput for more info.array
- The array to use.public double getValue(int i)
getValue
in interface InputField
getValue
in class BasicInputField
i
- The index to retrieve.public int length()
length
in interface HasFixedLength
Copyright © 2014. All Rights Reserved.