StatModel.html 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429
  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
  2. <!-- NewPage -->
  3. <html lang="en">
  4. <head>
  5. <!-- Generated by javadoc (1.8.0_65) on Fri Dec 18 18:19:52 MSK 2015 -->
  6. <title>StatModel</title>
  7. <meta name="date" content="2015-12-18">
  8. <link rel="stylesheet" type="text/css" href="../../../stylesheet.css" title="Style">
  9. <script type="text/javascript" src="../../../script.js"></script>
  10. </head>
  11. <body>
  12. <script type="text/javascript"><!--
  13. try {
  14. if (location.href.indexOf('is-external=true') == -1) {
  15. parent.document.title="StatModel";
  16. }
  17. }
  18. catch(err) {
  19. }
  20. //-->
  21. var methods = {"i0":10,"i1":10,"i2":10,"i3":10,"i4":10,"i5":10,"i6":10};
  22. var tabs = {65535:["t0","All Methods"],2:["t2","Instance Methods"],8:["t4","Concrete Methods"]};
  23. var altColor = "altColor";
  24. var rowColor = "rowColor";
  25. var tableTab = "tableTab";
  26. var activeTableTab = "activeTableTab";
  27. </script>
  28. <noscript>
  29. <div>JavaScript is disabled on your browser.</div>
  30. </noscript>
  31. <!-- ========= START OF TOP NAVBAR ======= -->
  32. <div class="topNav"><a name="navbar.top">
  33. <!-- -->
  34. </a>
  35. <div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div>
  36. <a name="navbar.top.firstrow">
  37. <!-- -->
  38. </a>
  39. <ul class="navList" title="Navigation">
  40. <li><a href="../../../overview-summary.html">Overview</a></li>
  41. <li><a href="package-summary.html">Package</a></li>
  42. <li class="navBarCell1Rev">Class</li>
  43. <li><a href="package-tree.html">Tree</a></li>
  44. <li><a href="../../../index-all.html">Index</a></li>
  45. <li><a href="../../../help-doc.html">Help</a></li>
  46. </ul>
  47. <div class="aboutLanguage">OpenCV 3.1.0</div>
  48. </div>
  49. <div class="subNav">
  50. <ul class="navList">
  51. <li><a href="../../../org/opencv/ml/RTrees.html" title="class in org.opencv.ml"><span class="typeNameLink">Prev&nbsp;Class</span></a></li>
  52. <li><a href="../../../org/opencv/ml/SVM.html" title="class in org.opencv.ml"><span class="typeNameLink">Next&nbsp;Class</span></a></li>
  53. </ul>
  54. <ul class="navList">
  55. <li><a href="../../../index.html?org/opencv/ml/StatModel.html" target="_top">Frames</a></li>
  56. <li><a href="StatModel.html" target="_top">No&nbsp;Frames</a></li>
  57. </ul>
  58. <ul class="navList" id="allclasses_navbar_top">
  59. <li><a href="../../../allclasses-noframe.html">All&nbsp;Classes</a></li>
  60. </ul>
  61. <div>
  62. <script type="text/javascript"><!--
  63. allClassesLink = document.getElementById("allclasses_navbar_top");
  64. if(window==top) {
  65. allClassesLink.style.display = "block";
  66. }
  67. else {
  68. allClassesLink.style.display = "none";
  69. }
  70. //-->
  71. </script>
  72. </div>
  73. <div>
  74. <ul class="subNavList">
  75. <li>Summary:&nbsp;</li>
  76. <li>Nested&nbsp;|&nbsp;</li>
  77. <li><a href="#field.summary">Field</a>&nbsp;|&nbsp;</li>
  78. <li>Constr&nbsp;|&nbsp;</li>
  79. <li><a href="#method.summary">Method</a></li>
  80. </ul>
  81. <ul class="subNavList">
  82. <li>Detail:&nbsp;</li>
  83. <li><a href="#field.detail">Field</a>&nbsp;|&nbsp;</li>
  84. <li>Constr&nbsp;|&nbsp;</li>
  85. <li><a href="#method.detail">Method</a></li>
  86. </ul>
  87. </div>
  88. <a name="skip.navbar.top">
  89. <!-- -->
  90. </a></div>
  91. <!-- ========= END OF TOP NAVBAR ========= -->
  92. <!-- ======== START OF CLASS DATA ======== -->
  93. <div class="header">
  94. <div class="subTitle">org.opencv.ml</div>
  95. <h2 title="Class StatModel" class="title">Class StatModel</h2>
  96. </div>
  97. <div class="contentContainer">
  98. <ul class="inheritance">
  99. <li>java.lang.Object</li>
  100. <li>
  101. <ul class="inheritance">
  102. <li><a href="../../../org/opencv/core/Algorithm.html" title="class in org.opencv.core">org.opencv.core.Algorithm</a></li>
  103. <li>
  104. <ul class="inheritance">
  105. <li>org.opencv.ml.StatModel</li>
  106. </ul>
  107. </li>
  108. </ul>
  109. </li>
  110. </ul>
  111. <div class="description">
  112. <ul class="blockList">
  113. <li class="blockList">
  114. <dl>
  115. <dt>Direct Known Subclasses:</dt>
  116. <dd><a href="../../../org/opencv/ml/ANN_MLP.html" title="class in org.opencv.ml">ANN_MLP</a>, <a href="../../../org/opencv/ml/DTrees.html" title="class in org.opencv.ml">DTrees</a>, <a href="../../../org/opencv/ml/EM.html" title="class in org.opencv.ml">EM</a>, <a href="../../../org/opencv/ml/KNearest.html" title="class in org.opencv.ml">KNearest</a>, <a href="../../../org/opencv/ml/LogisticRegression.html" title="class in org.opencv.ml">LogisticRegression</a>, <a href="../../../org/opencv/ml/NormalBayesClassifier.html" title="class in org.opencv.ml">NormalBayesClassifier</a>, <a href="../../../org/opencv/ml/SVM.html" title="class in org.opencv.ml">SVM</a></dd>
  117. </dl>
  118. <hr>
  119. <br>
  120. <pre>public class <span class="typeNameLabel">StatModel</span>
  121. extends <a href="../../../org/opencv/core/Algorithm.html" title="class in org.opencv.core">Algorithm</a></pre>
  122. </li>
  123. </ul>
  124. </div>
  125. <div class="summary">
  126. <ul class="blockList">
  127. <li class="blockList">
  128. <!-- =========== FIELD SUMMARY =========== -->
  129. <ul class="blockList">
  130. <li class="blockList"><a name="field.summary">
  131. <!-- -->
  132. </a>
  133. <h3>Field Summary</h3>
  134. <table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Field Summary table, listing fields, and an explanation">
  135. <caption><span>Fields</span><span class="tabEnd">&nbsp;</span></caption>
  136. <tr>
  137. <th class="colFirst" scope="col">Modifier and Type</th>
  138. <th class="colLast" scope="col">Field and Description</th>
  139. </tr>
  140. <tr class="altColor">
  141. <td class="colFirst"><code>static int</code></td>
  142. <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/opencv/ml/StatModel.html#COMPRESSED_INPUT">COMPRESSED_INPUT</a></span></code>&nbsp;</td>
  143. </tr>
  144. <tr class="rowColor">
  145. <td class="colFirst"><code>static int</code></td>
  146. <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/opencv/ml/StatModel.html#PREPROCESSED_INPUT">PREPROCESSED_INPUT</a></span></code>&nbsp;</td>
  147. </tr>
  148. <tr class="altColor">
  149. <td class="colFirst"><code>static int</code></td>
  150. <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/opencv/ml/StatModel.html#RAW_OUTPUT">RAW_OUTPUT</a></span></code>&nbsp;</td>
  151. </tr>
  152. <tr class="rowColor">
  153. <td class="colFirst"><code>static int</code></td>
  154. <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/opencv/ml/StatModel.html#UPDATE_MODEL">UPDATE_MODEL</a></span></code>&nbsp;</td>
  155. </tr>
  156. </table>
  157. </li>
  158. </ul>
  159. <!-- ========== METHOD SUMMARY =========== -->
  160. <ul class="blockList">
  161. <li class="blockList"><a name="method.summary">
  162. <!-- -->
  163. </a>
  164. <h3>Method Summary</h3>
  165. <table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation">
  166. <caption><span id="t0" class="activeTableTab"><span>All Methods</span><span class="tabEnd">&nbsp;</span></span><span id="t2" class="tableTab"><span><a href="javascript:show(2);">Instance Methods</a></span><span class="tabEnd">&nbsp;</span></span><span id="t4" class="tableTab"><span><a href="javascript:show(8);">Concrete Methods</a></span><span class="tabEnd">&nbsp;</span></span></caption>
  167. <tr>
  168. <th class="colFirst" scope="col">Modifier and Type</th>
  169. <th class="colLast" scope="col">Method and Description</th>
  170. </tr>
  171. <tr id="i0" class="altColor">
  172. <td class="colFirst"><code>boolean</code></td>
  173. <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/opencv/ml/StatModel.html#empty--">empty</a></span>()</code>&nbsp;</td>
  174. </tr>
  175. <tr id="i1" class="rowColor">
  176. <td class="colFirst"><code>int</code></td>
  177. <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/opencv/ml/StatModel.html#getVarCount--">getVarCount</a></span>()</code>&nbsp;</td>
  178. </tr>
  179. <tr id="i2" class="altColor">
  180. <td class="colFirst"><code>boolean</code></td>
  181. <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/opencv/ml/StatModel.html#isClassifier--">isClassifier</a></span>()</code>&nbsp;</td>
  182. </tr>
  183. <tr id="i3" class="rowColor">
  184. <td class="colFirst"><code>boolean</code></td>
  185. <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/opencv/ml/StatModel.html#isTrained--">isTrained</a></span>()</code>&nbsp;</td>
  186. </tr>
  187. <tr id="i4" class="altColor">
  188. <td class="colFirst"><code>float</code></td>
  189. <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/opencv/ml/StatModel.html#predict-org.opencv.core.Mat-">predict</a></span>(<a href="../../../org/opencv/core/Mat.html" title="class in org.opencv.core">Mat</a>&nbsp;samples)</code>&nbsp;</td>
  190. </tr>
  191. <tr id="i5" class="rowColor">
  192. <td class="colFirst"><code>float</code></td>
  193. <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/opencv/ml/StatModel.html#predict-org.opencv.core.Mat-org.opencv.core.Mat-int-">predict</a></span>(<a href="../../../org/opencv/core/Mat.html" title="class in org.opencv.core">Mat</a>&nbsp;samples,
  194. <a href="../../../org/opencv/core/Mat.html" title="class in org.opencv.core">Mat</a>&nbsp;results,
  195. int&nbsp;flags)</code>&nbsp;</td>
  196. </tr>
  197. <tr id="i6" class="altColor">
  198. <td class="colFirst"><code>boolean</code></td>
  199. <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/opencv/ml/StatModel.html#train-org.opencv.core.Mat-int-org.opencv.core.Mat-">train</a></span>(<a href="../../../org/opencv/core/Mat.html" title="class in org.opencv.core">Mat</a>&nbsp;samples,
  200. int&nbsp;layout,
  201. <a href="../../../org/opencv/core/Mat.html" title="class in org.opencv.core">Mat</a>&nbsp;responses)</code>&nbsp;</td>
  202. </tr>
  203. </table>
  204. <ul class="blockList">
  205. <li class="blockList"><a name="methods.inherited.from.class.org.opencv.core.Algorithm">
  206. <!-- -->
  207. </a>
  208. <h3>Methods inherited from class&nbsp;org.opencv.core.<a href="../../../org/opencv/core/Algorithm.html" title="class in org.opencv.core">Algorithm</a></h3>
  209. <code><a href="../../../org/opencv/core/Algorithm.html#clear--">clear</a>, <a href="../../../org/opencv/core/Algorithm.html#getDefaultName--">getDefaultName</a>, <a href="../../../org/opencv/core/Algorithm.html#save-java.lang.String-">save</a></code></li>
  210. </ul>
  211. <ul class="blockList">
  212. <li class="blockList"><a name="methods.inherited.from.class.java.lang.Object">
  213. <!-- -->
  214. </a>
  215. <h3>Methods inherited from class&nbsp;java.lang.Object</h3>
  216. <code>equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</code></li>
  217. </ul>
  218. </li>
  219. </ul>
  220. </li>
  221. </ul>
  222. </div>
  223. <div class="details">
  224. <ul class="blockList">
  225. <li class="blockList">
  226. <!-- ============ FIELD DETAIL =========== -->
  227. <ul class="blockList">
  228. <li class="blockList"><a name="field.detail">
  229. <!-- -->
  230. </a>
  231. <h3>Field Detail</h3>
  232. <a name="COMPRESSED_INPUT">
  233. <!-- -->
  234. </a>
  235. <ul class="blockList">
  236. <li class="blockList">
  237. <h4>COMPRESSED_INPUT</h4>
  238. <pre>public static final&nbsp;int COMPRESSED_INPUT</pre>
  239. <dl>
  240. <dt><span class="seeLabel">See Also:</span></dt>
  241. <dd><a href="../../../constant-values.html#org.opencv.ml.StatModel.COMPRESSED_INPUT">Constant Field Values</a></dd>
  242. </dl>
  243. </li>
  244. </ul>
  245. <a name="PREPROCESSED_INPUT">
  246. <!-- -->
  247. </a>
  248. <ul class="blockList">
  249. <li class="blockList">
  250. <h4>PREPROCESSED_INPUT</h4>
  251. <pre>public static final&nbsp;int PREPROCESSED_INPUT</pre>
  252. <dl>
  253. <dt><span class="seeLabel">See Also:</span></dt>
  254. <dd><a href="../../../constant-values.html#org.opencv.ml.StatModel.PREPROCESSED_INPUT">Constant Field Values</a></dd>
  255. </dl>
  256. </li>
  257. </ul>
  258. <a name="RAW_OUTPUT">
  259. <!-- -->
  260. </a>
  261. <ul class="blockList">
  262. <li class="blockList">
  263. <h4>RAW_OUTPUT</h4>
  264. <pre>public static final&nbsp;int RAW_OUTPUT</pre>
  265. <dl>
  266. <dt><span class="seeLabel">See Also:</span></dt>
  267. <dd><a href="../../../constant-values.html#org.opencv.ml.StatModel.RAW_OUTPUT">Constant Field Values</a></dd>
  268. </dl>
  269. </li>
  270. </ul>
  271. <a name="UPDATE_MODEL">
  272. <!-- -->
  273. </a>
  274. <ul class="blockListLast">
  275. <li class="blockList">
  276. <h4>UPDATE_MODEL</h4>
  277. <pre>public static final&nbsp;int UPDATE_MODEL</pre>
  278. <dl>
  279. <dt><span class="seeLabel">See Also:</span></dt>
  280. <dd><a href="../../../constant-values.html#org.opencv.ml.StatModel.UPDATE_MODEL">Constant Field Values</a></dd>
  281. </dl>
  282. </li>
  283. </ul>
  284. </li>
  285. </ul>
  286. <!-- ============ METHOD DETAIL ========== -->
  287. <ul class="blockList">
  288. <li class="blockList"><a name="method.detail">
  289. <!-- -->
  290. </a>
  291. <h3>Method Detail</h3>
  292. <a name="empty--">
  293. <!-- -->
  294. </a>
  295. <ul class="blockList">
  296. <li class="blockList">
  297. <h4>empty</h4>
  298. <pre>public&nbsp;boolean&nbsp;empty()</pre>
  299. </li>
  300. </ul>
  301. <a name="getVarCount--">
  302. <!-- -->
  303. </a>
  304. <ul class="blockList">
  305. <li class="blockList">
  306. <h4>getVarCount</h4>
  307. <pre>public&nbsp;int&nbsp;getVarCount()</pre>
  308. </li>
  309. </ul>
  310. <a name="isClassifier--">
  311. <!-- -->
  312. </a>
  313. <ul class="blockList">
  314. <li class="blockList">
  315. <h4>isClassifier</h4>
  316. <pre>public&nbsp;boolean&nbsp;isClassifier()</pre>
  317. </li>
  318. </ul>
  319. <a name="isTrained--">
  320. <!-- -->
  321. </a>
  322. <ul class="blockList">
  323. <li class="blockList">
  324. <h4>isTrained</h4>
  325. <pre>public&nbsp;boolean&nbsp;isTrained()</pre>
  326. </li>
  327. </ul>
  328. <a name="predict-org.opencv.core.Mat-">
  329. <!-- -->
  330. </a>
  331. <ul class="blockList">
  332. <li class="blockList">
  333. <h4>predict</h4>
  334. <pre>public&nbsp;float&nbsp;predict(<a href="../../../org/opencv/core/Mat.html" title="class in org.opencv.core">Mat</a>&nbsp;samples)</pre>
  335. </li>
  336. </ul>
  337. <a name="predict-org.opencv.core.Mat-org.opencv.core.Mat-int-">
  338. <!-- -->
  339. </a>
  340. <ul class="blockList">
  341. <li class="blockList">
  342. <h4>predict</h4>
  343. <pre>public&nbsp;float&nbsp;predict(<a href="../../../org/opencv/core/Mat.html" title="class in org.opencv.core">Mat</a>&nbsp;samples,
  344. <a href="../../../org/opencv/core/Mat.html" title="class in org.opencv.core">Mat</a>&nbsp;results,
  345. int&nbsp;flags)</pre>
  346. </li>
  347. </ul>
  348. <a name="train-org.opencv.core.Mat-int-org.opencv.core.Mat-">
  349. <!-- -->
  350. </a>
  351. <ul class="blockListLast">
  352. <li class="blockList">
  353. <h4>train</h4>
  354. <pre>public&nbsp;boolean&nbsp;train(<a href="../../../org/opencv/core/Mat.html" title="class in org.opencv.core">Mat</a>&nbsp;samples,
  355. int&nbsp;layout,
  356. <a href="../../../org/opencv/core/Mat.html" title="class in org.opencv.core">Mat</a>&nbsp;responses)</pre>
  357. </li>
  358. </ul>
  359. </li>
  360. </ul>
  361. </li>
  362. </ul>
  363. </div>
  364. </div>
  365. <!-- ========= END OF CLASS DATA ========= -->
  366. <!-- ======= START OF BOTTOM NAVBAR ====== -->
  367. <div class="bottomNav"><a name="navbar.bottom">
  368. <!-- -->
  369. </a>
  370. <div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div>
  371. <a name="navbar.bottom.firstrow">
  372. <!-- -->
  373. </a>
  374. <ul class="navList" title="Navigation">
  375. <li><a href="../../../overview-summary.html">Overview</a></li>
  376. <li><a href="package-summary.html">Package</a></li>
  377. <li class="navBarCell1Rev">Class</li>
  378. <li><a href="package-tree.html">Tree</a></li>
  379. <li><a href="../../../index-all.html">Index</a></li>
  380. <li><a href="../../../help-doc.html">Help</a></li>
  381. </ul>
  382. <div class="aboutLanguage"><a href="http://docs.opencv.org">OpenCV 3.1.0 Documentation</a></div>
  383. </div>
  384. <div class="subNav">
  385. <ul class="navList">
  386. <li><a href="../../../org/opencv/ml/RTrees.html" title="class in org.opencv.ml"><span class="typeNameLink">Prev&nbsp;Class</span></a></li>
  387. <li><a href="../../../org/opencv/ml/SVM.html" title="class in org.opencv.ml"><span class="typeNameLink">Next&nbsp;Class</span></a></li>
  388. </ul>
  389. <ul class="navList">
  390. <li><a href="../../../index.html?org/opencv/ml/StatModel.html" target="_top">Frames</a></li>
  391. <li><a href="StatModel.html" target="_top">No&nbsp;Frames</a></li>
  392. </ul>
  393. <ul class="navList" id="allclasses_navbar_bottom">
  394. <li><a href="../../../allclasses-noframe.html">All&nbsp;Classes</a></li>
  395. </ul>
  396. <div>
  397. <script type="text/javascript"><!--
  398. allClassesLink = document.getElementById("allclasses_navbar_bottom");
  399. if(window==top) {
  400. allClassesLink.style.display = "block";
  401. }
  402. else {
  403. allClassesLink.style.display = "none";
  404. }
  405. //-->
  406. </script>
  407. </div>
  408. <div>
  409. <ul class="subNavList">
  410. <li>Summary:&nbsp;</li>
  411. <li>Nested&nbsp;|&nbsp;</li>
  412. <li><a href="#field.summary">Field</a>&nbsp;|&nbsp;</li>
  413. <li>Constr&nbsp;|&nbsp;</li>
  414. <li><a href="#method.summary">Method</a></li>
  415. </ul>
  416. <ul class="subNavList">
  417. <li>Detail:&nbsp;</li>
  418. <li><a href="#field.detail">Field</a>&nbsp;|&nbsp;</li>
  419. <li>Constr&nbsp;|&nbsp;</li>
  420. <li><a href="#method.detail">Method</a></li>
  421. </ul>
  422. </div>
  423. <a name="skip.navbar.bottom">
  424. <!-- -->
  425. </a></div>
  426. <!-- ======== END OF BOTTOM NAVBAR ======= -->
  427. </body>
  428. </html>