summaryrefslogtreecommitdiff
path: root/models
diff options
context:
space:
mode:
authorKatolaZ <katolaz@yahoo.it>2016-04-13 14:35:25 +0100
committerKatolaZ <katolaz@yahoo.it>2016-04-13 14:35:25 +0100
commit2308e5bfccb88d600b2c6fa91ab21f0f1406088a (patch)
treeaa1b235cf8243429c5c2ef10bd92c18e813d1ed5 /models
parent30ae28e6f8f355198148e91d55bcd816d2d67565 (diff)
new version of cartography_from_layers in CHEADmaster
Diffstat (limited to 'models')
-rw-r--r--models/correlations/tune_qnn_adaptive.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/models/correlations/tune_qnn_adaptive.c b/models/correlations/tune_qnn_adaptive.c
index f645dbe..420d3ef 100644
--- a/models/correlations/tune_qnn_adaptive.c
+++ b/models/correlations/tune_qnn_adaptive.c
@@ -66,7 +66,10 @@ void tune_qnn_adaptive(double *R1, double *R2, int N, int *pairing, double eps,
a = 1.0;
F = 10000;
-
+
+ fit_current_trend(R1, R2, N, pairing, &mu, &a, &err);
+ fprintf(stderr, "Initial mu: %g a: %g corr: %g\n", mu, a, err);
+
//fprintf("%f %f %f %f %f\n", eps, beta, mu_target, act_mu, F);
tot = 0;
@@ -143,7 +146,9 @@ void tune_qnn_adaptive(double *R1, double *R2, int N, int *pairing, double eps,
fit_current_trend(R1, R2, N, pairing, &mu, &dummy_a, &err);
F = fabs(mu - mu_target);
}
-}
+ fit_current_trend(R1, R2, N, pairing, &mu, &a, &err);
+ fprintf(stderr, "Final mu: %g a: %g corr: %g\n", mu, a, err);
+ }
void dump_qnn(double *R1, double *R2, int N, int *pairing){