diff options
| author | pants <jaron@kent-dobias.com> | 2016-09-08 11:54:06 -0400 | 
|---|---|---|
| committer | pants <jaron@kent-dobias.com> | 2016-09-08 11:54:06 -0400 | 
| commit | b74bf87fd7eb2e75e71f6b667bd12b0ca7a31c11 (patch) | |
| tree | c3fa46f10f6ae8604c4e784febc3eaa49b51b821 /src/bin_values.c | |
| parent | a264723b23d9ad6c3cb13450a6cf4b131f8d7338 (diff) | |
| download | fuse_networks-b74bf87fd7eb2e75e71f6b667bd12b0ca7a31c11.tar.gz fuse_networks-b74bf87fd7eb2e75e71f6b667bd12b0ca7a31c11.tar.bz2 fuse_networks-b74bf87fd7eb2e75e71f6b667bd12b0ca7a31c11.zip  | |
cleaned up old files that don't matter
Diffstat (limited to 'src/bin_values.c')
| -rw-r--r-- | src/bin_values.c | 23 | 
1 files changed, 0 insertions, 23 deletions
diff --git a/src/bin_values.c b/src/bin_values.c deleted file mode 100644 index 70009c1..0000000 --- a/src/bin_values.c +++ /dev/null @@ -1,23 +0,0 @@ - -#include "fracture.h" - -double *bin_values(graph_t *network, unsigned int width, double *values) { -	double *binned = calloc(pow(width, 2), sizeof(double)); -	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->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]++; -		} -	} - -	for (unsigned int i = 0; i < pow(width, 2); i++) { -		if (num_binned[i] != 0) { -			binned[i] /= num_binned[i]; -		} -	} - -	return binned; -}  | 
