]> SALOME platform Git repositories - modules/yacs.git/blob - src/pmml/Test/samples/unittest_ref_lr_model.cpp
Salome HOME
updated copyright message
[modules/yacs.git] / src / pmml / Test / samples / unittest_ref_lr_model.cpp
1 void myTestFunc(double *param, double *res)
2 {
3   ////////////////////////////// 
4   //
5   // File used by unit test
6   // PMMLBasicsTest1::testExportLinearRegressionCpp
7   //
8   ////////////////////////////// 
9
10   // Intercept
11   double y = 3.83737;
12
13   // Attribute : x6
14   y += param[0]*0.475913;
15
16   // Attribute : x8
17   y += param[1]*0.142884;
18
19   // Attribute : x6x8
20   y += param[2]*-0.022019;
21
22   // Attribute : x6x6x8
23   y += param[3]*0.000536256;
24
25   // Return the value
26   res[0] = y;
27 }