summaryrefslogtreecommitdiff
path: root/uniform.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'uniform.cpp')
-rw-r--r--uniform.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/uniform.cpp b/uniform.cpp
index 6c8184c..1e8ae7d 100644
--- a/uniform.cpp
+++ b/uniform.cpp
@@ -48,7 +48,7 @@ int main(int argc, char* argv[]) {
for (unsigned i = 0; i < a.edges.size(); i++) {
const AztecDiamond::Edge& e = a.edges[i];
const AztecDiamond::Vertex& vt = *e.tail;
- const AztecDiamond::Vertex& vh = *e.head;
+ const AztecDiamond::Vertex& vh = *e.head;
data_x[vt.index] += avgProbabilities[i] * (vt.coordinate[0] - vh.coordinate[0]);
data_y[vt.index] += avgProbabilities[i] * (vt.coordinate[1] - vh.coordinate[1]);
data_x[vh.index] += avgProbabilities[i] * (vt.coordinate[0] - vh.coordinate[0]);