Adding parameter tolerance in tests and fixing axiliar function in CST_ProbBestIndexWeighting.R

1 job for develop-aemetBestNaoWeighting
in 5 minutes and 49 seconds, using 0 compute credits, and was queued for 2 seconds