Skip to content

Commit 5b13698

Browse files
committed
fix numeric calculation
1 parent 8a4a608 commit 5b13698

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

SINGER/SINGER/ARG.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,10 @@ int ARG::get_index(double x) {
5454
void ARG::compute_rhos_thetas(double r, double m) {
5555
int n = (int) coordinates.size() - 1;
5656
for (int i = 0; i < n; i++) {
57-
// rhos.push_back(r*(coordinates[i+1] - coordinates[i]));
58-
// thetas.push_back(m*(coordinates[i+1] - coordinates[i]));
59-
rhos.push_back(r*bin_size);
60-
thetas.push_back(m*bin_size);
57+
rhos.push_back(r*(coordinates[i+1] - coordinates[i]));
58+
thetas.push_back(m*(coordinates[i+1] - coordinates[i]));
59+
// rhos.push_back(r*bin_size);
60+
// thetas.push_back(m*bin_size);
6161
}
6262
}
6363

0 commit comments

Comments
 (0)