Documentation of 'boofcv.abst.geo.optimization.ModelCodecSwapData' Java class
ModelCodecSwapData
boofcv.abst.geo.optimization

Class ModelCodecSwapData

  • All Implemented Interfaces:
    ModelCodec<org.ejml.data.DenseMatrix64F>


    public class ModelCodecSwapData
    extends java.lang.Object
    implements ModelCodec<org.ejml.data.DenseMatrix64F>
    For use in cases where the model is a matrix and there is a 1-to-1 relationship with model parameters. Instead of copying the data over it simple puts parameter array reference into the matrix.
    • Constructor Summary

      Constructors 
      Constructor and Description
      ModelCodecSwapData(int paramLength) 
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      void decode(double[] input, org.ejml.data.DenseMatrix64F outputModel)
      Converts the parameter array into a model.
      void encode(org.ejml.data.DenseMatrix64F model, double[] param)
      Converts the provided model into the array format.
      int getParamLength()
      Number of elements in array encoded parameters.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ModelCodecSwapData

        public ModelCodecSwapData(int paramLength)
    • Method Detail

      • decode

        public void decode(double[] input,
                           org.ejml.data.DenseMatrix64F outputModel)
        Description copied from interface: ModelCodec
        Converts the parameter array into a model.
        Specified by:
        decode in interface ModelCodec<org.ejml.data.DenseMatrix64F>
        Parameters:
        input - input model parameters.
        outputModel - Option (can be null) model.
      • encode

        public void encode(org.ejml.data.DenseMatrix64F model,
                           double[] param)
        Description copied from interface: ModelCodec
        Converts the provided model into the array format.
        Specified by:
        encode in interface ModelCodec<org.ejml.data.DenseMatrix64F>
        Parameters:
        model - Input model.
        param - Output parameterized model. Can be null.
      • getParamLength

        public int getParamLength()
        Description copied from interface: ModelCodec
        Number of elements in array encoded parameters.
        Specified by:
        getParamLength in interface ModelCodec<org.ejml.data.DenseMatrix64F>

DataMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.