1 #include "StatsQ31.h"
2 #include <stdio.h>
3 #include "Error.h"
4 #include "Test.h"
5 
6 
7 
test_max_q31()8     void StatsQ31::test_max_q31()
9     {
10 
11         q31_t result;
12         uint32_t  indexval;
13 
14         arm_max_q31(inap,
15               this->nb,
16               &result,
17               &indexval);
18 
19     }
20 
test_absmax_q31()21     void StatsQ31::test_absmax_q31()
22     {
23 
24         q31_t result;
25         uint32_t  indexval;
26 
27         arm_absmax_q31(inap,
28               this->nb,
29               &result,
30               &indexval);
31 
32     }
33 
34 
35 
test_min_q31()36     void StatsQ31::test_min_q31()
37     {
38 
39         q31_t result;
40         uint32_t  indexval;
41 
42 
43         arm_min_q31(inap,
44               this->nb,
45               &result,
46               &indexval);
47 
48 
49 
50     }
51 
test_absmin_q31()52     void StatsQ31::test_absmin_q31()
53     {
54 
55         q31_t result;
56         uint32_t  indexval;
57 
58 
59         arm_absmin_q31(inap,
60               this->nb,
61               &result,
62               &indexval);
63 
64 
65 
66     }
67 
test_mean_q31()68     void StatsQ31::test_mean_q31()
69     {
70         q31_t result;
71 
72         arm_mean_q31(inap,
73               this->nb,
74               &result);
75 
76     }
77 
test_power_q31()78     void StatsQ31::test_power_q31()
79     {
80 
81         q63_t result;
82 
83 
84         arm_power_q31(inap,
85               this->nb,
86               &result);
87 
88 
89 
90     }
91 
test_rms_q31()92     void StatsQ31::test_rms_q31()
93     {
94 
95         q31_t result;
96 
97 
98         arm_rms_q31(inap,
99               this->nb,
100               &result);
101 
102 
103     }
104 
test_std_q31()105     void StatsQ31::test_std_q31()
106     {
107 
108         q31_t result;
109 
110 
111         arm_std_q31(inap,
112               this->nb,
113               &result);
114 
115 
116     }
117 
test_var_q31()118     void StatsQ31::test_var_q31()
119     {
120 
121         q31_t result;
122 
123 
124         arm_var_q31(inap,
125               this->nb,
126               &result);
127 
128 
129     }
130 
131 
132 
133 
setUp(Testing::testID_t id,std::vector<Testing::param_t> & paramsArgs,Client::PatternMgr * mgr)134     void StatsQ31::setUp(Testing::testID_t id,std::vector<Testing::param_t>& paramsArgs,Client::PatternMgr *mgr)
135     {
136         std::vector<Testing::param_t>::iterator it = paramsArgs.begin();
137         this->nb = *it;
138 
139         inputA.reload(StatsQ31::INPUT1_Q31_ID,mgr,this->nb);
140 
141         inap=inputA.ptr();
142 
143 
144 
145     }
146 
tearDown(Testing::testID_t id,Client::PatternMgr * mgr)147     void StatsQ31::tearDown(Testing::testID_t id,Client::PatternMgr *mgr)
148     {
149       (void)id;
150 
151     }
152