• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 
2 //
3 // This file is auto-generated. Please don't modify it!
4 //
5 package org.opencv.ml;
6 
7 import org.opencv.core.Mat;
8 
9 // C++: class NormalBayesClassifier
10 //javadoc: NormalBayesClassifier
11 public class NormalBayesClassifier extends StatModel {
12 
NormalBayesClassifier(long addr)13     protected NormalBayesClassifier(long addr) { super(addr); }
14 
15 
16     //
17     // C++:  float predictProb(Mat inputs, Mat& outputs, Mat& outputProbs, int flags = 0)
18     //
19 
20     //javadoc: NormalBayesClassifier::predictProb(inputs, outputs, outputProbs, flags)
predictProb(Mat inputs, Mat outputs, Mat outputProbs, int flags)21     public  float predictProb(Mat inputs, Mat outputs, Mat outputProbs, int flags)
22     {
23 
24         float retVal = predictProb_0(nativeObj, inputs.nativeObj, outputs.nativeObj, outputProbs.nativeObj, flags);
25 
26         return retVal;
27     }
28 
29     //javadoc: NormalBayesClassifier::predictProb(inputs, outputs, outputProbs)
predictProb(Mat inputs, Mat outputs, Mat outputProbs)30     public  float predictProb(Mat inputs, Mat outputs, Mat outputProbs)
31     {
32 
33         float retVal = predictProb_1(nativeObj, inputs.nativeObj, outputs.nativeObj, outputProbs.nativeObj);
34 
35         return retVal;
36     }
37 
38 
39     //
40     // C++: static Ptr_NormalBayesClassifier create()
41     //
42 
43     //javadoc: NormalBayesClassifier::create()
create()44     public static NormalBayesClassifier create()
45     {
46 
47         NormalBayesClassifier retVal = new NormalBayesClassifier(create_0());
48 
49         return retVal;
50     }
51 
52 
53     @Override
finalize()54     protected void finalize() throws Throwable {
55         delete(nativeObj);
56     }
57 
58 
59 
60     // C++:  float predictProb(Mat inputs, Mat& outputs, Mat& outputProbs, int flags = 0)
predictProb_0(long nativeObj, long inputs_nativeObj, long outputs_nativeObj, long outputProbs_nativeObj, int flags)61     private static native float predictProb_0(long nativeObj, long inputs_nativeObj, long outputs_nativeObj, long outputProbs_nativeObj, int flags);
predictProb_1(long nativeObj, long inputs_nativeObj, long outputs_nativeObj, long outputProbs_nativeObj)62     private static native float predictProb_1(long nativeObj, long inputs_nativeObj, long outputs_nativeObj, long outputProbs_nativeObj);
63 
64     // C++: static Ptr_NormalBayesClassifier create()
create_0()65     private static native long create_0();
66 
67     // native support for java finalize()
delete(long nativeObj)68     private static native void delete(long nativeObj);
69 
70 }
71