ParamGrid.h 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  1. //
  2. // This file is auto-generated. Please don't modify it!
  3. //
  4. #pragma once
  5. #ifdef __cplusplus
  6. //#import "opencv.hpp"
  7. #import "opencv2/ml.hpp"
  8. #else
  9. #define CV_EXPORTS
  10. #endif
  11. #import <Foundation/Foundation.h>
  12. NS_ASSUME_NONNULL_BEGIN
  13. // C++: class ParamGrid
  14. /**
  15. * The structure represents the logarithmic grid range of statmodel parameters.
  16. *
  17. * It is used for optimizing statmodel accuracy by varying model parameters, the accuracy estimate
  18. * being computed by cross-validation.
  19. *
  20. * Member of `Ml`
  21. */
  22. CV_EXPORTS @interface ParamGrid : NSObject
  23. #ifdef __cplusplus
  24. @property(readonly)cv::Ptr<cv::ml::ParamGrid> nativePtr;
  25. #endif
  26. #ifdef __cplusplus
  27. - (instancetype)initWithNativePtr:(cv::Ptr<cv::ml::ParamGrid>)nativePtr;
  28. + (instancetype)fromNative:(cv::Ptr<cv::ml::ParamGrid>)nativePtr;
  29. #endif
  30. #pragma mark - Methods
  31. //
  32. // static Ptr_ParamGrid cv::ml::ParamGrid::create(double minVal = 0., double maxVal = 0., double logstep = 1.)
  33. //
  34. /**
  35. * Creates a ParamGrid Ptr that can be given to the %SVM::trainAuto method
  36. *
  37. * @param minVal minimum value of the parameter grid
  38. * @param maxVal maximum value of the parameter grid
  39. * @param logstep Logarithmic step for iterating the statmodel parameter
  40. */
  41. + (ParamGrid*)create:(double)minVal maxVal:(double)maxVal logstep:(double)logstep NS_SWIFT_NAME(create(minVal:maxVal:logstep:));
  42. /**
  43. * Creates a ParamGrid Ptr that can be given to the %SVM::trainAuto method
  44. *
  45. * @param minVal minimum value of the parameter grid
  46. * @param maxVal maximum value of the parameter grid
  47. */
  48. + (ParamGrid*)create:(double)minVal maxVal:(double)maxVal NS_SWIFT_NAME(create(minVal:maxVal:));
  49. /**
  50. * Creates a ParamGrid Ptr that can be given to the %SVM::trainAuto method
  51. *
  52. * @param minVal minimum value of the parameter grid
  53. */
  54. + (ParamGrid*)create:(double)minVal NS_SWIFT_NAME(create(minVal:));
  55. /**
  56. * Creates a ParamGrid Ptr that can be given to the %SVM::trainAuto method
  57. *
  58. */
  59. + (ParamGrid*)create NS_SWIFT_NAME(create());
  60. //
  61. // C++: double cv::ml::ParamGrid::minVal
  62. //
  63. @property double minVal;
  64. //
  65. // C++: double cv::ml::ParamGrid::maxVal
  66. //
  67. @property double maxVal;
  68. //
  69. // C++: double cv::ml::ParamGrid::logStep
  70. //
  71. @property double logStep;
  72. @end
  73. NS_ASSUME_NONNULL_END