Interface ModelCodec<T>


public interface ModelCodec<T>
Used to convert a model to and from an array parameterized format.
  • Method Summary

    Modifier and Type Method Description
    void decode​(double[] input, T outputModel)
    Converts the parameter array into a model.
    void encode​(T inputModel, double[] output)
    Converts the provided model into the array format.
    int getParamLength()
    Number of elements in array encoded parameters.
  • Method Details

    • decode

      void decode​(double[] input, T outputModel)
      Converts the parameter array into a model.
      Parameters:
      input - input model parameters.
      outputModel - Output. The decoded model..
    • encode

      void encode​(T inputModel, double[] output)
      Converts the provided model into the array format.
      Parameters:
      inputModel - Input model.
      output - Output parameterized model
    • getParamLength

      int getParamLength()
      Number of elements in array encoded parameters.