Skip to content

Commit

Permalink
RideMetric::count needs to be a double
Browse files Browse the repository at this point in the history
  • Loading branch information
Leif Warland committed Mar 9, 2017
1 parent 65bc8de commit 0e452db
Showing 1 changed file with 6 additions and 10 deletions.
16 changes: 6 additions & 10 deletions src/Metrics/HrvMetrics.cpp
Expand Up @@ -47,8 +47,8 @@ class RRNormalFraction : public RideMetric {
}

void compute(RideItem *item, Specification, const QHash<QString,RideMetric*> &) {
double total;
int count;
double total, count;

bool this_state;
bool last_state = false;

Expand Down Expand Up @@ -109,8 +109,7 @@ class avnn : public RideMetric {

void compute(RideItem *item, Specification, const QHash<QString,RideMetric*> &) {

double total;
int count;
double total, count;
bool last_state = false;
bool this_state;

Expand Down Expand Up @@ -174,8 +173,7 @@ class sdnn : public RideMetric {
}

void compute(RideItem *item, Specification, const QHash<QString,RideMetric*> &) {
double sum, sum2;
int count;
double sum, sum2, count;
bool last_state = false;
bool this_state;

Expand Down Expand Up @@ -251,8 +249,7 @@ class sdann : public RideMetric {
}

void compute(RideItem *item, Specification, const QHash<QString,RideMetric*> &) {
double sum, sum2, total;
int count, n;
double sum, sum2, total, count, n;
bool last_state = false;
bool this_state;

Expand Down Expand Up @@ -345,8 +342,7 @@ class sdnnidx : public RideMetric {

void compute(RideItem *item, Specification, const QHash<QString,RideMetric*> &) {

double sum, sum2, total;
int count, n;
double sum, sum2, total, count, n;
bool last_state = false;
bool this_state;
double tlim = 300.0;
Expand Down

0 comments on commit 0e452db

Please sign in to comment.