1 #ifndef ONEGAPDIST_H 2 #define ONEGAPDIST_H 3 /* 4 * onegapdist.h 5 * Mothur 6 * 7 * Created by Sarah Westcott on 5/7/09. 8 * Copyright 2009 Schloss Lab UMASS Amherst. All rights reserved. 9 * 10 */ 11 12 #include "calculator.h" 13 14 15 /**************************************************************************************************/ 16 17 class oneGapDist : public DistCalc { 18 19 public: 20 oneGapDist(double c)21 oneGapDist(double c) : DistCalc(c) {} 22 23 //finds the distance from A to each seq in otu. 24 //this function calcs the distance using only the columns provided, if cols is empty, use all 25 vector<double> calcDist(Sequence A, classifierOTU otu, vector<int> cols); 26 27 double calcDist(Sequence A, Sequence B); //calc distance between 2 seqeunces 28 getCitation()29 string getCitation() { return "http://mothur.org"; } 30 31 }; 32 33 /**************************************************************************************************/ 34 35 #endif 36