13 #define PI 3.1415926535897932384626433 14 #define I_PI 0.3183098861837906715377675 // 1/pi 15 #define LOG_SQRT_PI 0.5723649429247000870717135 16 #define I_SQRT_PI 0.5641895835477562869480795 17 #define I_SQRT_TWO_PI 0.39894228040143 22 inline double max(
double x,
double y)
29 inline double min(
double x,
double y)
125 double BETAIN(
enum MathError *error,
double x,
double a,
double b,
double beta);
126 double BETADIST(
enum MathError *error,
double x,
double alpha,
double beta,
double LB=0.0,
double UB=1.0);
127 double BETAINVERSE(
enum MathError *error,
double p,
double alpha,
double beta,
double LB=0.0,
double UB=1.0);
138 double NORMDIST(
enum MathError *error,
double x,
double mean,
double standard_dev,
bool fCum=
true);
139 double NORMINV(
enum MathError *error,
double p,
double mean,
double standard_dev);
141 double GAMMADIST(
enum MathError *error,
double x,
double alpha,
double beta,
bool fCum=
true);
145 double LOGINV(
enum MathError *error,
double p,
double mean,
double standard_dev);
153 double WEIBULL(
enum MathError *error,
double x,
double alpha,
double beta,
bool fCum=
true);
200 #endif // _STATISTIC_ double FisherInv(enum MathError *error, double x)
double min(double x, double y)
Definition: statistic.h:29
Definition: statistic.h:38
double Correlation(enum MathError *error, Int32 nX, double X[], Int32 nY, double Y[])
double TTAIL(enum MathError *error, double x, Int32 nu, Int32 tails)
void LinearRegression(enum MathError *error, double py[], int n, double *m, double *b)
double ZTest(enum MathError *error, Int32 nX, double X[], double stdevX, double hypMean, enum Hypothesis Hyp)
Hypothesis
Definition: ReportServiceCore/Classes/CalculationEngine/statistic.h:35
Definition: statistic.h:176
#define s(x, c)
Definition: aesopt.h:408
double Covariance(enum MathError *error, Int32 nX, double X[], Int32 nY, double Y[])
Definition: statistic.h:177
double max(double x, double y)
Definition: statistic.h:22
double Forecast_S(enum MathError *error, double x, double px[], double py[], int n)
Definition: statistic.h:178
double Kurtosis(enum MathError *error, Int32 n, double Vn[])
double CRITBINOM(enum MathError *error, Int32 n, double p, double f)
double NORMDIST(enum MathError *error, double x, double mean, double standard_dev, bool fCum=true)
double LOGINV(enum MathError *error, double p, double mean, double standard_dev)
double EXPONDIST(enum MathError *error, double x, double lambda, bool fCum=true)
Regression(enum MathError *error, Int32 varNum, Int32 obsNum, double Y[], double **X, Int32 function=0)
double Mean(enum MathError *error, Int32 n, double Vn[])
double * Pvalues
Definition: ReportServiceCore/Classes/CalculationEngine/statistic.h:191
MathError
Definition: DSSFunctionUtility.h:344
double PairedTTest(enum MathError *error, Int32 nX, double X[], Int32 nY, double Y[], enum Hypothesis Hyp, double offset=0.0)
double Ssquare
Definition: ReportServiceCore/Classes/CalculationEngine/statistic.h:192
double Fisher(enum MathError *error, double x)
Definition: statistic.h:39
double StDevKM(enum MathError *error, Int32 n, double Vn[], double mean)
double Rsquare
Definition: ReportServiceCore/Classes/CalculationEngine/statistic.h:192
double HomoscedasticTTest(enum MathError *error, Int32 nX, double X[], Int32 nY, double Y[], enum Hypothesis Hyp, double offset=0.0)
double CHIDIST(enum MathError *error, double x, Int32 df)
double Growth_S(enum MathError *error, double x, double py[], int n)
double * Variances
Definition: ReportServiceCore/Classes/CalculationEngine/statistic.h:190
Definition: statistic.h:37
double AvgDev(enum MathError *error, Int32 n, double Vn[])
double Standardize(enum MathError *error, double x, double mean, double standard_dev)
double SteYX(enum MathError *error, Int32 nY, double Y[], Int32 nX, double X[])
double ChiSqTest(enum MathError *error, Int32 nX, double X[], Int32 nY, double Y[])
double oldCHIDIST(enum MathError *error, double x, Int32 df)
double TDIST(enum MathError *error, double x, Int32 nu)
double ALOGAM(enum MathError *error, double x)
double * Parameters
Definition: ReportServiceCore/Classes/CalculationEngine/statistic.h:189
double BETAINVERSE(enum MathError *error, double p, double alpha, double beta, double LB=0.0, double UB=1.0)
#define Int32
Definition: BasicTypes.h:20
double gammln(enum MathError *error, double xx)
double FDIST(enum MathError *error, double p, Int32 df1, Int32 df2)
double oldTDIST(enum MathError *error, double x, Int32 nu)
double GAMMAINV(enum MathError *error, double p, double alpha, double beta)
double BETAINV(enum MathError *error, double p, double q, double alpha)
double RSquareKM(enum MathError *error, Int32 nX, double X[], double meanX, Int32 nY, double Y[], double meanY)
double NORMINV(enum MathError *error, double p, double mean, double standard_dev)
Definition: statistic.h:41
double Predict(enum MathError *error, Int32 nX, double X[])
Int32 ParametersNum
Definition: ReportServiceCore/Classes/CalculationEngine/statistic.h:188
double CHIINV(enum MathError *error, double p, Int32 df)
double TINV(enum MathError *error, double p, Int32 nu)
double FINV(enum MathError *error, double f, Int32 df1, Int32 df2)
double BETADIST(enum MathError *error, double x, double alpha, double beta, double LB=0.0, double UB=1.0)
double PERMUT(enum MathError *error, Int32 x, Int32 n)
double HYPGEOMDIST(enum MathError *error, Int32 x, Int32 n, Int32 M, Int32 N)
double VarianceKM(enum MathError *error, Int32 n, double Vn[], double mean)
double BINOMDIST(enum MathError *error, Int32 x, Int32 n, double p, bool fCum=true)
double Slope(enum MathError *error, Int32 nY, double Y[], Int32 nX, double X[])
double oldFDIST(enum MathError *error, double p, Int32 df1, Int32 df2)
double BETAIN(enum MathError *error, double x, double a, double b, double beta)
double CovarianceKM(enum MathError *error, Int32 nX, double X[], double meanX, Int32 nY, double Y[], double meanY)
double NORMSINV(enum MathError *error, double f)
double WEIBULL(enum MathError *error, double x, double alpha, double beta, bool fCum=true)
double Skew(enum MathError *error, Int32 n, double Vn[])
double COMBIN(enum MathError *error, Int32 x, Int32 n)
double CorrelationKM(enum MathError *error, Int32 nX, double X[], double meanX, Int32 nY, double Y[], double meanY)
double StDev(enum MathError *error, Int32 n, double Vn[])
double(* InverseFunction)(double)
Definition: ReportServiceCore/Classes/CalculationEngine/statistic.h:187
double Confidence(enum MathError *error, double alpha, double standard_dev, Int32 size)
Definition: statistic.h:40
double NORMSDIST(enum MathError *error, double z)
Definition: ReportServiceCore/Classes/CalculationEngine/statistic.h:182
Int32 ObservationsNum
Definition: ReportServiceCore/Classes/CalculationEngine/statistic.h:188
double Variance(enum MathError *error, Int32 n, double Vn[])
double LOGNORMDIST(enum MathError *error, double x, double mean, double standard_dev)
double MeanTTest(enum MathError *error, Int32 nX, double X[], double hypMean, enum Hypothesis Hyp)
double HeteroscedasticTTest(enum MathError *error, Int32 nX, double X[], Int32 nY, double Y[], enum Hypothesis Hyp, double offset=0.0)
double NEGBINOMDIST(enum MathError *error, Int32 f, Int32 s, double p)
double FTest(enum MathError *error, Int32 nX, double X[], Int32 nY, double Y[], enum Hypothesis Hyp, double ratio=1.0)
double POISSON(enum MathError *error, Int32 x, double mean, bool fCum=true)
double Intercept(enum MathError *error, Int32 nY, double Y[], Int32 nX, double X[])
RegressionFunction
Definition: ReportServiceCore/Classes/CalculationEngine/statistic.h:174
double VarTest(enum MathError *error, Int32 nX, double X[], double hypVar, enum Hypothesis Hyp)
double LinearTrend_S(enum MathError *error, double x, double py[], int n)
double TTAILINV(enum MathError *error, double p, Int32 nu)
double RSquare(enum MathError *error, Int32 nX, double X[], Int32 nY, double Y[])
double GAMMADIST(enum MathError *error, double x, double alpha, double beta, bool fCum=true)