Package net.maswag.falcaun
Class OutputMapper
java.lang.Object
net.maswag.falcaun.OutputMapper
A class for mapping output values to characters.
This class is similar to OutputMapperReader but can be instantiated directly from a List<List<Double>>.
It maintains the same behavior regarding tracking "largest" characters for out-of-range values.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionOutputMapper(String filename) Constructor for OutputMapper from a file.OutputMapper(List<List<Double>> data) Constructor for OutputMapper from data. -
Method Summary
-
Field Details
-
parsedData
-
largest
-
outputMapper
-
-
Constructor Details
-
OutputMapper
Constructor for OutputMapper from a file.
- Parameters:
filename- The name of the file to read.- Throws:
IOException- if an error occurs while reading the file.
-
OutputMapper
Constructor for OutputMapper from data.
- Parameters:
data- aListobject containing the parsed data.
-
OutputMapper
-
-
Method Details
-
parse
protected void parse()Parses the data and creates the output mapper. This method initializes the character mapping and tracks the "largest" characters. -
sortOutputMappings
-
sortByValue
-