summaryrefslogtreecommitdiff
path: root/src/bin_values.c
diff options
context:
space:
mode:
authorpants <jaron@kent-dobias.com>2016-09-07 14:55:30 -0400
committerpants <jaron@kent-dobias.com>2016-09-07 14:55:30 -0400
commit873a9f9bedbbfb07d475e271923a7b86464e515f (patch)
tree8c8b8e2ebcd45a9bf9174a7e22153e8c3261f419 /src/bin_values.c
parent805794c6e8b7c16e6219f75076fcbc76221d551d (diff)
downloadfuse_networks-873a9f9bedbbfb07d475e271923a7b86464e515f.tar.gz
fuse_networks-873a9f9bedbbfb07d475e271923a7b86464e515f.tar.bz2
fuse_networks-873a9f9bedbbfb07d475e271923a7b86464e515f.zip
more major refactoring
Diffstat (limited to 'src/bin_values.c')
-rw-r--r--src/bin_values.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/bin_values.c b/src/bin_values.c
index 8cde548..70009c1 100644
--- a/src/bin_values.c
+++ b/src/bin_values.c
@@ -6,8 +6,8 @@ double *bin_values(graph_t *network, unsigned int width, double *values) {
unsigned int *num_binned = calloc(pow(width, 2), sizeof(unsigned int));
for (unsigned int i = 0; i < network->ne; i++) {
if (values[i] != 0) {
- unsigned int x = ((int)(network->edge_coords[2 * i] * width)) % width;
- unsigned int y = ((int)(network->edge_coords[2 * i + 1] * width)) % width;
+ unsigned int x = ((int)(network->ex[2 * i] * width)) % width;
+ unsigned int y = ((int)(network->ex[2 * i + 1] * width)) % width;
binned[width * x + y] += fabs(values[i]);
num_binned[width * x + y]++;
}