X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=nmdscommand.h;h=861e8eaf95eb79a02c4e918a732f13c19f3ce845;hb=ca9ac1d80c62f57270b0dcd49410ebe08a8aecd6;hp=d7bedcf7f9c37a6f8091d32792c10a160be3e5c5;hpb=c921bbf0623d5200f69b5d83b3c70ea533c69412;p=mothur.git diff --git a/nmdscommand.h b/nmdscommand.h index d7bedcf..861e8ea 100644 --- a/nmdscommand.h +++ b/nmdscommand.h @@ -32,22 +32,23 @@ class NMDSCommand : public Command { public: NMDSCommand(string); NMDSCommand(); - ~NMDSCommand(); - vector getRequiredParameters(); - vector getValidParameters(); - vector getRequiredFiles(); - map > getOutputFiles() { return outputTypes; } - int execute(); - void help(); + ~NMDSCommand(){} + + vector setParameters(); + string getCommandName() { return "nmds"; } + string getCommandCategory() { return "Hypothesis Testing"; } + string getHelpString(); + + int execute(); + void help() { m->mothurOut(getHelpString()); } private: - bool abort, trace; + bool abort; string phylipfile, outputDir, axesfile; int maxdim, mindim, maxIters, iters; double epsilon; vector outputNames; - map > outputTypes; LinearAlgebra linearCalc; vector< vector > nmdsCalc(vector< vector >&, vector< vector >&, double&); @@ -56,14 +57,7 @@ private: int normalizeConfiguration(vector< vector >&, int, int); double calculateStress(vector< vector >&, vector< vector >&); vector< vector > readAxes(vector); - int output(vector< vector >&, vector&, ofstream&); - - //vector satisfyMonotonicity(vector, vector); - //vector< vector > calculateStressGradientVector(vector&, vector&, double, double, vector< vector >&); - //double calculateMagnitude(vector< vector >&); - //double calculateStep(vector< vector >&, vector< vector >&, vector&); - //vector< vector > calculateNewConfiguration(double, vector< vector >&, vector< vector >&); - + int output(vector< vector >&, vector&, ofstream&); }; /*****************************************************************/