diff options
author | Tor Lillqvist <tml@collabora.com> | 2015-01-28 15:35:21 +0200 |
---|---|---|
committer | Tor Lillqvist <tml@collabora.com> | 2015-01-28 15:38:46 +0200 |
commit | 328ddd2154061aaff7e1292a6976ccd3d210aef4 (patch) | |
tree | 2105d5448aa04f9efbbe6c93fb6bd106b4a6c366 | |
parent | 787efbe6b155d6dde0d38000b108fd210471bb22 (diff) |
Make gaussinv() static and public
It does not access any member so can be static. It is needed in the OpenCL
test spreadsheet to verify the results from the OpenCL implenentation of
NORMSINV.
Change-Id: I72c1f6e6c0c04c0e25f4779ab334158b8d4e371d
-rw-r--r-- | sc/source/core/inc/interpre.hxx | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/sc/source/core/inc/interpre.hxx b/sc/source/core/inc/interpre.hxx index 50864c3a3ade..6f9e1e627c1e 100644 --- a/sc/source/core/inc/interpre.hxx +++ b/sc/source/core/inc/interpre.hxx @@ -26,6 +26,7 @@ #include <formula/errorcodes.hxx> #include <formula/tokenarray.hxx> #include "scdll.hxx" +#include "scdllapi.h" #include "types.hxx" #include "externalrefmgr.hxx" #include "calcconfig.hxx" @@ -740,7 +741,11 @@ double phi(double x); double integralPhi(double x); double taylor(const double* pPolynom, sal_uInt16 nMax, double x); double gauss(double x); -double gaussinv(double x); + +public: +static SC_DLLPUBLIC double gaussinv(double x); + +private: double GetBetaDist(double x, double alpha, double beta); //cumulative distribution function double GetBetaDistPDF(double fX, double fA, double fB); //probability density function) double GetChiDist(double fChi, double fDF); // for LEGACY.CHIDIST, returns right tail |