1 #ifndef MOTHUR_METASTATS
2 #define MOTHUR_METASTATS
8 * Created by westcott on 7/6/11.
9 * Copyright 2011 Schloss Lab. All rights reserved.
14 #include "mothurout.h"
16 class MothurMetastats {
19 MothurMetastats(double, int); //threshold, numPermutations
22 int runMetastats(string, vector< vector<double> >&, int); //outputFileName, data, secondGroupingStart
26 int row, column, numPermutations;
29 int start(vector<double>&, int, vector<double>&, vector< vector<double> >&); //Find the initial values for the matrix
30 int meanvar(vector<double>&, int, vector<double>&);
31 int testp(vector<double>&, vector<double>&, vector<double>&, int, vector<double>&, vector<double>&);
32 int permute_matrix(vector<double>&, vector<double>&, int, vector<double>&, vector<double>&, vector<double>&);
33 int permute_array(vector<int>&);
34 int calc_twosample_ts(vector<double>&, int, vector<double>&, vector<double>&, vector<double>&);
35 double smoothSpline(vector<double>&, vector<double>&, int);
36 vector<double> calc_qvalues(vector<double>&);
37 vector<double> sknot1(double*, int);
39 int OrderPValues(int, int, vector<double>&, vector<int>&);
40 int swapElements(int, int, vector<double>&, vector<int>&);
41 vector<int> getSequence(int, int, int);