From 258a4d0d544e2afeba22f5e81c7639e259823ca5 Mon Sep 17 00:00:00 2001 From: Jonathan Zheng Date: Tue, 14 Jan 2020 15:47:20 +0000 Subject: [PATCH] verbosity added. nodes can be pinned but shortest paths still calculated for every node TODO --- lib/neatogen/sgd.c | 33 +++++++++++++++++++++++++++++---- 1 file changed, 29 insertions(+), 4 deletions(-) diff --git a/lib/neatogen/sgd.c b/lib/neatogen/sgd.c index 6c4510974..4cd42de43 100644 --- a/lib/neatogen/sgd.c +++ b/lib/neatogen/sgd.c @@ -18,6 +18,17 @@ void fisheryates_shuffle(term *terms, int nC2) { terms[j] = temp; } } +float calculate_stress(term *terms, int nC2) { + float stress = 0; + int ij; + for (ij=0; ij