diff options
author | KatolaZ <katolaz@yahoo.it> | 2016-04-13 14:35:25 +0100 |
---|---|---|
committer | KatolaZ <katolaz@yahoo.it> | 2016-04-13 14:35:25 +0100 |
commit | 2308e5bfccb88d600b2c6fa91ab21f0f1406088a (patch) | |
tree | aa1b235cf8243429c5c2ef10bd92c18e813d1ed5 /models/correlations | |
parent | 30ae28e6f8f355198148e91d55bcd816d2d67565 (diff) |
Diffstat (limited to 'models/correlations')
-rw-r--r-- | models/correlations/tune_qnn_adaptive.c | 9 |
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){ |