Skip to content

Commit

Permalink
Feature #2206 fix_spread_md (#2335)
Browse files Browse the repository at this point in the history
Co-authored-by: Seth Linden <linden@seneca.rap.ucar.edu>
  • Loading branch information
sethlinden and Seth Linden authored Nov 10, 2022
1 parent b4fd50d commit c621397
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/basic/vx_util/num_array.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1304,10 +1304,10 @@ double NumArray::mean_abs_diff() const
count++;
}
}

if(count == 0) mad = bad_data_double;
else mad = sum / (n*(n-1));

else mad = sum / count;
return(mad);

}
Expand Down

0 comments on commit c621397

Please sign in to comment.