#include #include "get_local_scores.h" #include "ilogi.h" #include "reg.h" #include "ls_NML.h" extern int* nof_vals; extern int N; #define BIG_NML_DATA (1<<16) /* NML = log(ML) - log(REGRET) */ score_t big_nml_score(int i, varset_t psi, int nof_freqs){ int vc_v = nof_vals[i]; int* freqp = freqmem; int* end_freqp = freqp + nof_freqs * vc_v; score_t res = 0.0; for(;freqp < end_freqp; freqp += vc_v) { int pcfreq = 0; int v; for(v = 0; v