#include "sharedmorisitahorn.h"
/***********************************************************************/
#include "sharedmorisitahorn.h"
/***********************************************************************/
- int Atotal, Btotal, tempA, tempB;
+ float Atotal, Btotal, tempA, tempB;
Atotal = 0; Btotal = 0;
float morhorn, sumSharedA, sumSharedB, a, b, d;
morhorn = 0.0; sumSharedA = 0.0; sumSharedB = 0.0; a = 0.0; b = 0.0; d = 0.0;
//get the total values we need to calculate the theta denominator sums
Atotal = 0; Btotal = 0;
float morhorn, sumSharedA, sumSharedB, a, b, d;
morhorn = 0.0; sumSharedA = 0.0; sumSharedB = 0.0; a = 0.0; b = 0.0; d = 0.0;
//get the total values we need to calculate the theta denominator sums
- tempA = shared1->getAbundance(j);
- tempB = shared2->getAbundance(j);
+ tempA = shared[0]->getAbundance(j);
+ tempB = shared[1]->getAbundance(j);
+ float relA = tempA / Atotal;
+ float relB = tempB / Btotal;