Permalink
Browse files

MAINT: Change denumerator->denominator

"Denominator" is the correct English name for the bottom part of
a fraction.
  • Loading branch information...
1 parent 714185e commit c1e12091cb29fe80f52d25b02b0d391b51bf4081 @scottclowe scottclowe committed Feb 1, 2016
@@ -54,7 +54,7 @@ function write_to_file(fn,s)
function coverage=compute_coverage(obj)
numerator=0;
- denumerator=0;
+ denominator=0;
for k=1:numel(obj.mfiles)
mfile=obj.mfiles{k};
@@ -63,9 +63,9 @@ function write_to_file(fn,s)
ed=get_lines_executed(mfile);
numerator=numerator+sum(ed & able);
- denumerator=denumerator+sum(able);
+ denominator=denominator+sum(able);
end
- coverage=numerator/denumerator;
+ coverage=numerator/denominator;
@@ -71,7 +71,7 @@ function write_to_file(fn,s)
function coverage=compute_coverage(obj)
% compute overall coverage across all files
numerator=0;
- denumerator=0;
+ denominator=0;
for k=1:count_mfiles(obj)
mfile=get_mfile(obj,k);
@@ -80,9 +80,9 @@ function write_to_file(fn,s)
executed=get_lines_executed(mfile);
numerator=numerator+sum(executed & executable);
- denumerator=denumerator+sum(executable);
+ denominator=denominator+sum(executable);
end
- coverage=numerator/denumerator;
+ coverage=numerator/denominator;

0 comments on commit c1e1209

Please sign in to comment.