From 2308e5bfccb88d600b2c6fa91ab21f0f1406088a Mon Sep 17 00:00:00 2001 From: KatolaZ Date: Wed, 13 Apr 2016 14:35:25 +0100 Subject: new version of cartography_from_layers in C --- models/correlations/tune_qnn_adaptive.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'models') 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){ -- cgit v1.2.3