Class OutputMapper

java.lang.Object
net.maswag.falcaun.OutputMapper

public class OutputMapper extends Object
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 Details

  • Constructor Details

    • OutputMapper

      public OutputMapper(String filename) throws IOException

      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

      public OutputMapper(List<List<Double>> data)

      Constructor for OutputMapper from data.

      Parameters:
      data - a List object containing the parsed data.
    • OutputMapper

      public OutputMapper(@NonNull @NonNull List<Map<Character,Double>> outputMapper, @NonNull @NonNull List<Character> largest)
  • Method Details