102ms_shapiro_wilk(std::deque<std::pair<size_t,double> > x, long n, long n1, long n2);
103
105void calculate(long n, long n1, long n2);
106
108void appendSampleValue(double y);
109
111void clearSampleValues();
112
114double getResult() const;
115
117double getPValue() const;
118
120double getErrorCode() const;
121
122private:
123bool init_;
124double w_; // The Shapiro-Wilks W-statistic.
125double pw_; // the P-value for w
126int ifault_; // error indicator
127 std::deque<double> a_;
128 std::deque<std::pair<size_t,double> > x_;
129
130public:
132staticvoid swilk(bool init, std::deque<std::pair<size_t,double> > x, long n, long n1, long n2, std::deque<double> &a, double &w, double &pw, int &ifault);
133
134private:
136staticdouble poly(constdouble *cc, int nord, double x);
138staticdouble ppnd7(double p,int &ifault);
140staticdouble alnorm(double x,bool upper);
141
142staticlong sign(long x,long y);
143 };
144// end of quantitation_group
146} // matrix_science
147
148
149#endif // MS_SHAPIRO_WILK_HPP
150/*------------------------------- End of File -------------------------------*/