Lines Matching full:freqs
229 U32 *freqs; member
413 static COVER_segment_t COVER_selectSegment(const COVER_ctx_t *ctx, U32 *freqs, in COVER_selectSegment() argument
443 activeSegment.score += freqs[newDmer]; in COVER_selectSegment()
458 activeSegment.score -= freqs[delDmer]; in COVER_selectSegment()
473 U32 freq = freqs[ctx->dmerAt[pos]]; in COVER_selectSegment()
486 freqs[ctx->dmerAt[pos]] = 0; in COVER_selectSegment()
528 if (ctx->freqs) { in COVER_ctx_destroy()
529 free(ctx->freqs); in COVER_ctx_destroy()
530 ctx->freqs = NULL; in COVER_ctx_destroy()
599 ctx->freqs = NULL; in COVER_ctx_init()
638 * freqs[dmerId]. in COVER_ctx_init()
642 ctx->freqs = ctx->suffix; in COVER_ctx_init()
683 static size_t COVER_buildDictionary(const COVER_ctx_t *ctx, U32 *freqs, in COVER_buildDictionary() argument
706 ctx, freqs, activeDmers, epochBegin, epochEnd, parameters); in COVER_buildDictionary()
778 COVER_buildDictionary(&ctx, ctx.freqs, &activeDmers, dictBuffer, in ZDICT_trainFromBuffer_cover()
1081 /* Allocate space for hash table, dict, and freqs */ in COVER_tryParameters()
1085 U32* const freqs = (U32*)malloc(ctx->suffixSize * sizeof(U32)); in COVER_tryParameters() local
1090 if (!dict || !freqs) { in COVER_tryParameters()
1095 memcpy(freqs, ctx->freqs, ctx->suffixSize * sizeof(U32)); in COVER_tryParameters()
1098 const size_t tail = COVER_buildDictionary(ctx, freqs, &activeDmers, dict, in COVER_tryParameters()
1115 free(freqs); in COVER_tryParameters()