org.encog.ml.data.versatile.normalizers
Interface Normalizer
-
- All Superinterfaces:
- java.io.Serializable
- All Known Implementing Classes:
- IndexedNormalizer, OneOfNNormalizer, PassThroughNormalizer, RangeNormalizer, RangeOrdinal
public interface Normalizer extends java.io.SerializableThe normalizer interface defines how to normalize a column. The source of the normalization can be either string or double.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method and Description java.lang.StringdenormalizeColumn(ColumnDefinition colDef, MLData data, int dataIndex)Denormalize a value.intnormalizeColumn(ColumnDefinition colDef, double value, double[] outputData, int outputIndex)Normalize a column from a double.intnormalizeColumn(ColumnDefinition colDef, java.lang.String value, double[] outputData, int outputIndex)Normalize a column from a string.intoutputSize(ColumnDefinition colDef)Determine the normalized size of the specified column.
-
-
-
Method Detail
-
outputSize
int outputSize(ColumnDefinition colDef)
Determine the normalized size of the specified column.- Parameters:
colDef- The column to check.- Returns:
- The size of the column normalized.
-
normalizeColumn
int normalizeColumn(ColumnDefinition colDef, java.lang.String value, double[] outputData, int outputIndex)
Normalize a column from a string. The output will go to an array, starting at outputColumn.- Parameters:
colDef- The column that is being normalized.value- The value to normalize.outputData- The array to output to.outputIndex- The index to start at in outputData.- Returns:
- The new index (in outputData) that we've moved to.
-
normalizeColumn
int normalizeColumn(ColumnDefinition colDef, double value, double[] outputData, int outputIndex)
Normalize a column from a double. The output will go to an array, starting at outputColumn.- Parameters:
colDef- The column that is being normalized.value- The value to normalize.outputData- The array to output to.outputIndex- The index to start at in outputData.- Returns:
- The new index (in outputData) that we've moved to.
-
denormalizeColumn
java.lang.String denormalizeColumn(ColumnDefinition colDef, MLData data, int dataIndex)
Denormalize a value.- Parameters:
colDef- The column to denormalize.data- The data to denormalize.dataIndex- The starting location inside data.- Returns:
- The denormalized value.
-
-
DMelt 3.0 © DataMelt by jWork.ORG