Skip to content

Commit

Permalink
Correct subscript
Browse files Browse the repository at this point in the history
  • Loading branch information
dspinellis committed Dec 29, 2011
1 parent f9f4485 commit d101b72
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mine.cpp
Expand Up @@ -298,7 +298,7 @@ optimize_x_axis(const vector <Point> &points, const Partition &q, int x, int max
cand[s] = P[s][l - 1].add_point(t);
double sum = 0;
for (int i = 1; i <= q.size(); i++) {
double column_points = cand[s].number_of_horizontal_partition_points(i);
double column_points = cand[s].number_of_horizontal_partition_points(l);
double cell_points = cand[s].number_of_cell_points(i, l);
sum += cell_points / c[t] * log2(cell_points / column_points);
}
Expand Down

0 comments on commit d101b72

Please sign in to comment.