001// 002// This file is auto-generated. Please don't modify it! 003// 004package org.opencv.ml; 005 006import org.opencv.ml.ParamGrid; 007 008// C++: class ParamGrid 009/** 010 * The structure represents the logarithmic grid range of statmodel parameters. 011 * 012 * It is used for optimizing statmodel accuracy by varying model parameters, the accuracy estimate 013 * being computed by cross-validation. 014 */ 015public class ParamGrid { 016 017 protected final long nativeObj; 018 protected ParamGrid(long addr) { nativeObj = addr; } 019 020 public long getNativeObjAddr() { return nativeObj; } 021 022 // internal usage only 023 public static ParamGrid __fromPtr__(long addr) { return new ParamGrid(addr); } 024 025 // 026 // C++: static Ptr_ParamGrid cv::ml::ParamGrid::create(double minVal = 0., double maxVal = 0., double logstep = 1.) 027 // 028 029 /** 030 * Creates a ParamGrid Ptr that can be given to the %SVM::trainAuto method 031 * 032 * @param minVal minimum value of the parameter grid 033 * @param maxVal maximum value of the parameter grid 034 * @param logstep Logarithmic step for iterating the statmodel parameter 035 * @return automatically generated 036 */ 037 public static ParamGrid create(double minVal, double maxVal, double logstep) { 038 return ParamGrid.__fromPtr__(create_0(minVal, maxVal, logstep)); 039 } 040 041 /** 042 * Creates a ParamGrid Ptr that can be given to the %SVM::trainAuto method 043 * 044 * @param minVal minimum value of the parameter grid 045 * @param maxVal maximum value of the parameter grid 046 * @return automatically generated 047 */ 048 public static ParamGrid create(double minVal, double maxVal) { 049 return ParamGrid.__fromPtr__(create_1(minVal, maxVal)); 050 } 051 052 /** 053 * Creates a ParamGrid Ptr that can be given to the %SVM::trainAuto method 054 * 055 * @param minVal minimum value of the parameter grid 056 * @return automatically generated 057 */ 058 public static ParamGrid create(double minVal) { 059 return ParamGrid.__fromPtr__(create_2(minVal)); 060 } 061 062 /** 063 * Creates a ParamGrid Ptr that can be given to the %SVM::trainAuto method 064 * 065 * @return automatically generated 066 */ 067 public static ParamGrid create() { 068 return ParamGrid.__fromPtr__(create_3()); 069 } 070 071 072 // 073 // C++: double ParamGrid::minVal 074 // 075 076 public double get_minVal() { 077 return get_minVal_0(nativeObj); 078 } 079 080 081 // 082 // C++: void ParamGrid::minVal 083 // 084 085 public void set_minVal(double minVal) { 086 set_minVal_0(nativeObj, minVal); 087 } 088 089 090 // 091 // C++: double ParamGrid::maxVal 092 // 093 094 public double get_maxVal() { 095 return get_maxVal_0(nativeObj); 096 } 097 098 099 // 100 // C++: void ParamGrid::maxVal 101 // 102 103 public void set_maxVal(double maxVal) { 104 set_maxVal_0(nativeObj, maxVal); 105 } 106 107 108 // 109 // C++: double ParamGrid::logStep 110 // 111 112 public double get_logStep() { 113 return get_logStep_0(nativeObj); 114 } 115 116 117 // 118 // C++: void ParamGrid::logStep 119 // 120 121 public void set_logStep(double logStep) { 122 set_logStep_0(nativeObj, logStep); 123 } 124 125 126 @Override 127 protected void finalize() throws Throwable { 128 delete(nativeObj); 129 } 130 131 132 133 // C++: static Ptr_ParamGrid cv::ml::ParamGrid::create(double minVal = 0., double maxVal = 0., double logstep = 1.) 134 private static native long create_0(double minVal, double maxVal, double logstep); 135 private static native long create_1(double minVal, double maxVal); 136 private static native long create_2(double minVal); 137 private static native long create_3(); 138 139 // C++: double ParamGrid::minVal 140 private static native double get_minVal_0(long nativeObj); 141 142 // C++: void ParamGrid::minVal 143 private static native void set_minVal_0(long nativeObj, double minVal); 144 145 // C++: double ParamGrid::maxVal 146 private static native double get_maxVal_0(long nativeObj); 147 148 // C++: void ParamGrid::maxVal 149 private static native void set_maxVal_0(long nativeObj, double maxVal); 150 151 // C++: double ParamGrid::logStep 152 private static native double get_logStep_0(long nativeObj); 153 154 // C++: void ParamGrid::logStep 155 private static native void set_logStep_0(long nativeObj, double logStep); 156 157 // native support for java finalize() 158 private static native void delete(long nativeObj); 159 160}