Stop leaking all ScPostIt instances.
[LibreOffice.git] / sc / source / core / opencl / op_statistical.hxx
blob19b33eb1c63a983bbf7a6f20827ff1b3c5999971
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 */
10 #ifndef SC_OPENCL_OP_STATISTICAL_HXX
11 #define SC_OPENCL_OP_STATISTICAL_HXX
13 #include "opbase.hxx"
15 namespace sc { namespace opencl {
17 class OpStandard: public Normal
19 public:
20 virtual void GenSlidingWindowFunction(std::stringstream &ss,
21 const std::string sSymName, SubArguments &vSubArguments);
22 virtual std::string BinFuncName(void) const { return "Standard"; }
24 class OpExponDist: public Normal
26 public:
27 virtual void GenSlidingWindowFunction(std::stringstream &ss,
28 const std::string sSymName, SubArguments &vSubArguments);
29 virtual std::string BinFuncName(void) const { return "ExponDist"; }
31 class OpVar: public Normal
33 public:
34 virtual void GenSlidingWindowFunction(std::stringstream &ss,
35 const std::string sSymName, SubArguments &vSubArguments);
36 virtual std::string BinFuncName(void) const { return "Var"; }
38 class OpSTEYX: public Normal
40 public:
41 virtual void GenSlidingWindowFunction(std::stringstream &ss,
42 const std::string sSymName, SubArguments &vSubArguments);
43 virtual std::string BinFuncName(void) const { return "STEYX"; }
45 class OpVarP: public Normal
47 public:
48 virtual void GenSlidingWindowFunction(std::stringstream &ss,
49 const std::string sSymName, SubArguments &vSubArguments);
50 virtual std::string BinFuncName(void) const { return "VarP"; }
52 class OpZTest: public Normal
54 public:
55 virtual void GenSlidingWindowFunction(std::stringstream &ss,
56 const std::string sSymName, SubArguments &vSubArguments);
57 virtual void BinInlineFun(std::set<std::string>& ,std::set<std::string>&);
58 virtual std::string BinFuncName(void) const { return "ZTest"; }
60 class OpStDevP: public Normal
62 public:
63 virtual void GenSlidingWindowFunction(std::stringstream &ss,
64 const std::string sSymName, SubArguments &vSubArguments);
65 virtual std::string BinFuncName(void) const { return "StDevP"; }
68 class OpStDev: public Normal
70 public:
71 virtual void GenSlidingWindowFunction(std::stringstream &ss,
72 const std::string sSymName, SubArguments &vSubArguments);
73 virtual std::string BinFuncName(void) const { return "StDev"; }
75 class OpSkewp: public Normal
77 public:
78 virtual void GenSlidingWindowFunction(std::stringstream &ss,
79 const std::string sSymName, SubArguments &vSubArguments);
80 virtual std::string BinFuncName(void) const { return "Skewp"; }
82 class OpSlope: public Normal
84 public:
85 virtual void GenSlidingWindowFunction(std::stringstream &ss,
86 const std::string sSymName, SubArguments &vSubArguments);
87 virtual std::string BinFuncName(void) const { return "Slope"; }
89 class OpWeibull: public Normal
91 public:
92 virtual void GenSlidingWindowFunction(std::stringstream &ss,
93 const std::string sSymName, SubArguments &vSubArguments);
94 virtual std::string BinFuncName(void) const { return "Weibull"; }
96 class OpFdist: public Normal
98 public:
99 virtual void GenSlidingWindowFunction(std::stringstream &ss,
100 const std::string sSymName, SubArguments &vSubArguments);
101 virtual void BinInlineFun(std::set<std::string>& ,std::set<std::string>&);
102 virtual std::string BinFuncName(void) const { return "Fdist"; }
104 class OpTDist: public Normal
106 public:
107 virtual void GenSlidingWindowFunction(std::stringstream &ss,
108 const std::string sSymName, SubArguments &vSubArguments);
109 virtual std::string BinFuncName(void) const { return "TDist"; }
110 virtual void BinInlineFun(std::set<std::string>& ,std::set<std::string>&);
112 class OpTInv: public Normal
114 public:
115 virtual void GenSlidingWindowFunction(std::stringstream &ss,
116 const std::string sSymName, SubArguments &vSubArguments);
117 virtual std::string BinFuncName(void) const { return "TInv"; }
118 virtual void BinInlineFun(std::set<std::string>& ,std::set<std::string>&);
120 class OpTTest: public Normal
122 public:
123 virtual void GenSlidingWindowFunction(std::stringstream &ss,
124 const std::string sSymName, SubArguments &vSubArguments);
125 virtual std::string BinFuncName(void) const { return "TTest"; }
126 virtual void BinInlineFun(std::set<std::string>& ,std::set<std::string>&);
128 class OpSkew: public Normal
130 public:
131 virtual void GenSlidingWindowFunction(std::stringstream &ss,
132 const std::string sSymName, SubArguments &vSubArguments);
133 virtual std::string BinFuncName(void) const { return "Skew"; }
135 class OpFisher: public Normal
137 public:
138 virtual void GenSlidingWindowFunction(std::stringstream &ss,
139 const std::string sSymName, SubArguments &vSubArguments);
140 virtual std::string BinFuncName(void) const { return "Fisher"; }
143 class OpFisherInv: public Normal
145 public:
146 virtual void GenSlidingWindowFunction(std::stringstream &ss,
147 const std::string sSymName, SubArguments &vSubArguments);
148 virtual std::string BinFuncName(void) const { return "FisherInv"; }
151 class OpGamma: public Normal
153 public:
154 virtual void GenSlidingWindowFunction(std::stringstream &ss,
155 const std::string sSymName, SubArguments &vSubArguments);
156 virtual std::string BinFuncName(void) const { return "Gamma"; }
159 class OpCorrel: public Normal
161 public:
162 virtual void GenSlidingWindowFunction(std::stringstream &ss,
163 const std::string sSymName, SubArguments &vSubArguments);
164 virtual std::string BinFuncName(void) const { return "Correl"; }
167 class OpNegbinomdist: public Normal
169 public:
170 virtual void GenSlidingWindowFunction(std::stringstream &ss,
171 const std::string sSymName, SubArguments &vSubArguments);
172 virtual std::string BinFuncName(void) const { return "OpNegbinomdist"; }
175 class OpPearson: public Normal
177 public:
178 virtual void GenSlidingWindowFunction(std::stringstream &ss,
179 const std::string sSymName, SubArguments &vSubArguments);
180 virtual std::string BinFuncName(void) const { return "OpPearson"; }
183 class OpGammaLn: public Normal
185 public:
186 virtual void GenSlidingWindowFunction(std::stringstream &ss,
187 const std::string sSymName, SubArguments &vSubArguments);
188 virtual std::string BinFuncName(void) const { return "GammaLn"; }
191 class OpGauss: public Normal
193 public:
194 virtual void GenSlidingWindowFunction(std::stringstream &ss,
195 const std::string sSymName, SubArguments &vSubArguments);
196 virtual void BinInlineFun(std::set<std::string>& ,
197 std::set<std::string>& );
198 virtual std::string BinFuncName(void) const { return "Gauss"; }
201 class OpGeoMean: public CheckVariables
203 public:
204 OpGeoMean(void): CheckVariables(), mNeedReductionKernel(true) {}
205 virtual void GenSlidingWindowFunction(std::stringstream &ss,
206 const std::string sSymName, SubArguments &vSubArguments);
207 virtual std::string BinFuncName(void) const { return "GeoMean"; }
208 bool NeedReductionKernel(void) const { return mNeedReductionKernel; }
209 protected:
210 bool mNeedReductionKernel;
213 class OpHarMean: public Normal
215 public:
216 virtual void GenSlidingWindowFunction(std::stringstream &ss,
217 const std::string sSymName, SubArguments &vSubArguments);
218 virtual std::string BinFuncName(void) const { return "HarMean"; }
221 class OpRsq: public Normal
223 public:
224 virtual void GenSlidingWindowFunction(std::stringstream &ss,
225 const std::string sSymName, SubArguments &vSubArguments);
226 virtual std::string BinFuncName(void) const { return "OpRsq"; }
228 class OpNormdist:public Normal{
229 public:
230 virtual void GenSlidingWindowFunction(std::stringstream &ss,
231 const std::string sSymName, SubArguments &vSubArguments);
232 virtual std::string BinFuncName(void) const { return "OpNormdist"; }
234 class OpMedian:public Normal{
235 public:
236 virtual void GenSlidingWindowFunction(std::stringstream &ss,
237 const std::string sSymName, SubArguments &vSubArguments);
238 virtual std::string BinFuncName(void) const { return "OpMedian"; }
240 class OpNormsdist:public Normal{
241 public:
242 virtual void GenSlidingWindowFunction(std::stringstream &ss,
243 const std::string sSymName, SubArguments &vSubArguments);
244 virtual void BinInlineFun(std::set<std::string>& ,std::set<std::string>&);
245 virtual std::string BinFuncName(void) const { return "OpNormsdist"; }
247 class OpNorminv:public Normal{
248 public:
249 virtual void GenSlidingWindowFunction(std::stringstream &ss,
250 const std::string sSymName, SubArguments &vSubArguments);
251 virtual std::string BinFuncName(void) const { return "OpNorminv"; }
253 class OpNormsinv:public Normal{
254 public:
255 virtual void GenSlidingWindowFunction(std::stringstream &ss,
256 const std::string sSymName, SubArguments &vSubArguments);
257 virtual std::string BinFuncName(void) const { return "OpNormsinv"; }
259 class OpPhi:public Normal{
260 public:
261 virtual void GenSlidingWindowFunction(std::stringstream &ss,
262 const std::string sSymName, SubArguments &vSubArguments);
263 virtual std::string BinFuncName(void) const { return "OpPhi"; }
265 class OpKurt: public Normal
267 public:
268 virtual void GenSlidingWindowFunction(std::stringstream &ss,
269 const std::string sSymName, SubArguments &vSubArguments);
270 virtual std::string BinFuncName(void) const { return "Kurt"; }
272 class OpCovar: public Normal
274 public:
275 virtual void GenSlidingWindowFunction(std::stringstream& ss,
276 const std::string sSymName, SubArguments& vSubArguments);
277 virtual std::string BinFuncName(void) const { return "Covar"; }
280 class OpVariationen:public Normal{
281 public:
282 virtual void GenSlidingWindowFunction(std::stringstream &ss,
283 const std::string sSymName, SubArguments &vSubArguments);
284 virtual std::string BinFuncName(void) const { return "OpVariationen"; }
286 class OpVariationen2:public Normal{
287 public:
288 virtual void GenSlidingWindowFunction(std::stringstream &ss,
289 const std::string sSymName, SubArguments &vSubArguments);
290 virtual std::string BinFuncName(void) const { return "OpVariationen2";}
293 class OpConfidence: public Normal
295 public:
296 virtual std::string GetBottom(void) { return "0"; }
298 virtual void GenSlidingWindowFunction(std::stringstream& ss,
299 const std::string sSymName, SubArguments& vSubArguments);
300 virtual void BinInlineFun(std::set<std::string>& ,
301 std::set<std::string>& );
303 virtual std::string BinFuncName(void) const { return "Confidence"; }
305 class OpIntercept: public Normal
307 public:
308 virtual void GenSlidingWindowFunction(std::stringstream &ss,
309 const std::string sSymName, SubArguments &vSubArguments);
310 virtual std::string BinFuncName(void) const { return "Intercept"; }
312 class OpLogInv: public Normal
314 public:
315 virtual void GenSlidingWindowFunction(std::stringstream &ss,
316 const std::string sSymName, SubArguments &vSubArguments);
317 virtual std::string BinFuncName(void) const { return "LogInv"; }
319 class OpCritBinom: public Normal
321 public:
322 virtual std::string GetBottom(void) { return "0"; }
324 virtual void GenSlidingWindowFunction(std::stringstream& ss,
325 const std::string sSymName, SubArguments& vSubArguments);
326 virtual void BinInlineFun(std::set<std::string>& ,
327 std::set<std::string>& );
329 virtual std::string BinFuncName(void) const { return "CritBinom"; }
331 class OpForecast: public Normal
333 public:
334 virtual void GenSlidingWindowFunction(std::stringstream &ss,
335 const std::string sSymName, SubArguments &vSubArguments);
336 virtual std::string BinFuncName(void) const { return "Forecast"; }
338 class OpLogNormDist: public Normal
340 public:
341 virtual void GenSlidingWindowFunction(std::stringstream &ss,
342 const std::string sSymName, SubArguments &vSubArguments);
343 virtual std::string BinFuncName(void) const { return "LogNormdist"; }
345 class OpGammaDist: public Normal
347 public:
348 virtual void GenSlidingWindowFunction(std::stringstream &ss,
349 const std::string sSymName, SubArguments &vSubArguments);
350 void BinInlineFun(std::set<std::string>& decls,std::set<std::string>& funs);
351 virtual std::string BinFuncName(void) const { return "GammaDist"; }
353 class OpHypGeomDist:public Normal{
354 public:
355 virtual void GenSlidingWindowFunction(std::stringstream &ss,
356 const std::string sSymName, SubArguments &vSubArguments);
357 virtual std::string BinFuncName(void) const { return "OpHypGeomDist"; }
359 class OpChiDist:public Normal{
360 public:
361 virtual void GenSlidingWindowFunction(std::stringstream &ss,
362 const std::string sSymName, SubArguments &vSubArguments);
363 virtual void BinInlineFun(std::set<std::string>& ,std::set<std::string>&);
364 virtual std::string BinFuncName(void) const { return "OpChiDist"; }
366 class OpBinomdist:public Normal{
367 public:
368 virtual void GenSlidingWindowFunction(std::stringstream &ss,
369 const std::string sSymName, SubArguments &vSubArguments);
370 virtual void BinInlineFun(std::set<std::string>& ,std::set<std::string>&);
371 virtual std::string BinFuncName(void) const { return "OpBinomdist"; }
373 class OpChiSqDist: public CheckVariables
375 public:
376 virtual void GenSlidingWindowFunction(std::stringstream &ss,
377 const std::string sSymName, SubArguments &vSubArguments);
378 virtual std::string BinFuncName(void) const { return "ChiSqDist"; }
379 virtual void BinInlineFun(std::set<std::string>& ,std::set<std::string>& );
382 class OpChiSqInv: public CheckVariables
384 public:
385 virtual void GenSlidingWindowFunction(std::stringstream &ss,
386 const std::string sSymName, SubArguments &vSubArguments);
387 virtual std::string BinFuncName(void) const { return "ChiSqInv"; }
388 virtual void BinInlineFun(std::set<std::string>& ,std::set<std::string>& );
390 class OpChiInv:public Normal{
391 public:
392 virtual void GenSlidingWindowFunction(std::stringstream &ss,
393 const std::string sSymName, SubArguments &vSubArguments);
394 virtual void BinInlineFun(std::set<std::string>& ,std::set<std::string>&);
395 virtual std::string BinFuncName(void) const { return "OpChiInv"; }
397 class OpPoisson:public Normal{
398 public:
399 virtual void GenSlidingWindowFunction(std::stringstream &ss,
400 const std::string sSymName, SubArguments &vSubArguments);
401 virtual void BinInlineFun(std::set<std::string>& ,std::set<std::string>&);
402 virtual std::string BinFuncName(void) const { return "OpPoisson"; }
405 class OpGammaInv: public Normal
407 public:
408 virtual void GenSlidingWindowFunction(std::stringstream &ss,
409 const std::string sSymName, SubArguments &vSubArguments);
410 void BinInlineFun(std::set<std::string>& decls,std::set<std::string>& funs
412 virtual std::string BinFuncName(void) const { return "GammaInv"; }
414 class OpFInv: public Normal
416 public:
417 virtual void GenSlidingWindowFunction(std::stringstream &ss,
418 const std::string sSymName, SubArguments &vSubArguments);
419 void BinInlineFun(std::set<std::string>& decls,std::set<std::string>& funs
421 virtual std::string BinFuncName(void) const { return "FInv"; }
423 class OpFTest: public Normal
425 public:
426 virtual void GenSlidingWindowFunction(std::stringstream &ss,
427 const std::string sSymName, SubArguments &vSubArguments);
428 void BinInlineFun(std::set<std::string>& decls,std::set<std::string>& funs
430 virtual std::string BinFuncName(void) const { return "FTest"; }
432 class OpDevSq: public Normal
434 public:
435 virtual void GenSlidingWindowFunction(std::stringstream &ss,
436 const std::string sSymName, SubArguments &vSubArguments);
437 virtual std::string BinFuncName(void) const { return "DevSq"; }
439 class OpB: public Normal
441 public:
442 virtual void GenSlidingWindowFunction(std::stringstream &ss,
443 const std::string sSymName, SubArguments &vSubArguments);
444 void BinInlineFun(std::set<std::string>& decls,std::set<std::string>& funs
446 virtual std::string BinFuncName(void) const { return "B"; }
448 class OpBetaDist: public Normal
450 public:
451 virtual void GenSlidingWindowFunction(std::stringstream &ss,
452 const std::string sSymName, SubArguments &vSubArguments);
453 void BinInlineFun(std::set<std::string>& decls,std::set<std::string>& funs
455 virtual std::string BinFuncName(void) const { return "BetaDist"; }
457 class OpBetainv:public Normal{
458 public:
459 virtual void GenSlidingWindowFunction(std::stringstream &ss,
460 const std::string sSymName, SubArguments &vSubArguments);
461 virtual void BinInlineFun(std::set<std::string>& ,std::set<std::string>&);
462 virtual std::string BinFuncName(void) const { return "OpBetainv"; }
464 class OpMinA: public Normal
466 public:
467 virtual void GenSlidingWindowFunction(std::stringstream &ss,
468 const std::string sSymName, SubArguments &vSubArguments);
469 virtual std::string BinFuncName(void) const { return "OpMinA"; }
470 virtual bool takeString() const { return true; }
471 virtual bool takeNumeric() const { return true; }
473 class OpCountA: public Normal
475 public:
476 virtual void GenSlidingWindowFunction(std::stringstream &ss,
477 const std::string sSymName, SubArguments &vSubArguments);
478 virtual std::string BinFuncName(void) const { return "OpCountA"; }
479 virtual bool takeString() const { return true; }
480 virtual bool takeNumeric() const { return true; }
482 class OpMaxA: public Normal
484 public:
485 virtual void GenSlidingWindowFunction(std::stringstream &ss,
486 const std::string sSymName, SubArguments &vSubArguments);
487 virtual std::string BinFuncName(void) const { return "OpMaxA"; }
488 virtual bool takeString() const { return true; }
489 virtual bool takeNumeric() const { return true; }
491 class OpVarA: public Normal
493 public:
494 virtual void GenSlidingWindowFunction(std::stringstream &ss,
495 const std::string sSymName, SubArguments &vSubArguments);
496 virtual std::string BinFuncName(void) const { return "OpVarA"; }
497 virtual bool takeString() const { return true; }
498 virtual bool takeNumeric() const { return true; }
500 class OpVarPA: public Normal
502 public:
503 virtual void GenSlidingWindowFunction(std::stringstream &ss,
504 const std::string sSymName, SubArguments &vSubArguments);
505 virtual std::string BinFuncName(void) const { return "OpVarPA"; }
506 virtual bool takeString() const { return true; }
507 virtual bool takeNumeric() const { return true; }
509 class OpStDevPA: public Normal
511 public:
512 virtual void GenSlidingWindowFunction(std::stringstream &ss,
513 const std::string sSymName, SubArguments &vSubArguments);
514 virtual std::string BinFuncName(void) const { return "OpStDevPA"; }
515 virtual bool takeString() const { return true; }
516 virtual bool takeNumeric() const { return true; }
518 class OpAverageA: public Normal
520 public:
521 virtual void GenSlidingWindowFunction(std::stringstream &ss,
522 const std::string sSymName, SubArguments &vSubArguments);
523 virtual std::string BinFuncName(void) const { return "OpAverageA"; }
524 virtual bool takeString() const { return true; }
525 virtual bool takeNumeric() const { return true; }
527 class OpStDevA: public Normal
529 public:
530 virtual void GenSlidingWindowFunction(std::stringstream &ss,
531 const std::string sSymName, SubArguments &vSubArguments);
532 virtual std::string BinFuncName(void) const { return "OpStDevA"; }
533 virtual bool takeString() const { return true; }
534 virtual bool takeNumeric() const { return true; }
536 class OpAveDev: public Normal
538 public:
539 virtual void GenSlidingWindowFunction(std::stringstream &ss,
540 const std::string sSymName, SubArguments &vSubArguments);
541 virtual std::string BinFuncName(void) const { return "AveDev"; }
546 #endif
548 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */