Package org.opencv.ml

Class ParamGrid


  • public class ParamGrid
    extends Object
    The structure represents the logarithmic grid range of statmodel parameters. It is used for optimizing statmodel accuracy by varying model parameters, the accuracy estimate being computed by cross-validation.
    • Field Detail

    • Constructor Detail

      • ParamGrid

        protected ParamGrid​(long addr)
    • Method Detail

      • create

        public static ParamGrid create​(double minVal,
                                       double maxVal,
                                       double logstep)
        Creates a ParamGrid Ptr that can be given to the %SVM::trainAuto method
        Parameters:
        minVal - minimum value of the parameter grid
        maxVal - maximum value of the parameter grid
        logstep - Logarithmic step for iterating the statmodel parameter
        Returns:
        automatically generated
      • create

        public static ParamGrid create​(double minVal,
                                       double maxVal)
        Creates a ParamGrid Ptr that can be given to the %SVM::trainAuto method
        Parameters:
        minVal - minimum value of the parameter grid
        maxVal - maximum value of the parameter grid
        Returns:
        automatically generated
      • create

        public static ParamGrid create​(double minVal)
        Creates a ParamGrid Ptr that can be given to the %SVM::trainAuto method
        Parameters:
        minVal - minimum value of the parameter grid
        Returns:
        automatically generated
      • create

        public static ParamGrid create()
        Creates a ParamGrid Ptr that can be given to the %SVM::trainAuto method
        Returns:
        automatically generated
      • set_minVal

        public void set_minVal​(double minVal)
      • set_maxVal

        public void set_maxVal​(double maxVal)
      • set_logStep

        public void set_logStep​(double logStep)