]> git.donarmstrong.com Git - mothur.git/blobdiff - eachgapdist.h
sffinfo bug with flow grams right index when clipQualRight=0
[mothur.git] / eachgapdist.h
index d21e55ca1acb4e950b1126ade38a3237a7684ad9..1aca10c4bd208f6cf6c0dbfd9f97fdde97afe576 100644 (file)
@@ -9,6 +9,7 @@
  *
  */
 
+
 #include "dist.h"
 
 /**************************************************************************************************/
@@ -16,6 +17,9 @@
 class eachGapDist : public Dist {
        
 public:
+       
+       eachGapDist() {}
+       
        void calcDist(Sequence A, Sequence B){          
                int diff = 0;
                int length = 0;
@@ -23,6 +27,7 @@ public:
                
                string seqA = A.getAligned();
                string seqB = B.getAligned();
+
                int alignLength = seqA.length();
                
                for(int i=0; i<alignLength; i++){
@@ -47,7 +52,6 @@ public:
                
                if(length == 0) {       dist = 1.0000;                                                          }
                else                    {       dist = ((double)diff  / (double)length);        }
-               
        }
 };