]> git.donarmstrong.com Git - mothur.git/blobdiff - sharedsabundvector.cpp
dist.seqs can now use n processors, and only outputs the phylip formatted distance...
[mothur.git] / sharedsabundvector.cpp
index c581d939870abeb8f880824c6df263c60e021a72..51058cf585fb511655a97d9b1a15d108dab99df5 100644 (file)
@@ -3,22 +3,17 @@
  *  Dotur
  *
  *  Created by Sarah Westcott on 12/10/08.
- *  Copyright 2008 __MyCompanyName__. All rights reserved.
+ *  Copyright 2008 Schloss Lab UMASS Amherst. All rights reserved.
  *
  */
 
 #include "sharedsabundvector.h"
 #include "sabundvector.hpp"
-#include "datavector.hpp"
-#include "utilities.hpp"
-#include <exception>
-
-using namespace std;
 
 
 /***********************************************************************/
 
-SharedSAbundVector::SharedSAbundVector() : DataVector(), maxRank(0), numBins(0), numSeqs(0){};
+SharedSAbundVector::SharedSAbundVector() : DataVector(), maxRank(0), numBins(0), numSeqs(0){}
 
 /***********************************************************************/
 
@@ -30,7 +25,7 @@ SharedSAbundVector::SharedSAbundVector(int size) :    DataVector(), maxRank(0), num
                        newGuy.abundance = 0;
                        data.push_back(newGuy);
                }
-};
+}
 
 /***********************************************************************/
 
@@ -256,6 +251,8 @@ SharedOrderVector SharedSAbundVector::getSharedOrderVector() {
                rav = this->getSharedRAbundVector();
                ov = rav.getSharedOrderVector();
                
+               ov.updateStats();
+               
                return ov;
        }
        catch(exception& e) {