Lines Matching refs:freqs
221 U32 *freqs; member
405 static COVER_segment_t COVER_selectSegment(const COVER_ctx_t *ctx, U32 *freqs, in COVER_selectSegment() argument
435 activeSegment.score += freqs[newDmer]; in COVER_selectSegment()
450 activeSegment.score -= freqs[delDmer]; in COVER_selectSegment()
465 U32 freq = freqs[ctx->dmerAt[pos]]; in COVER_selectSegment()
478 freqs[ctx->dmerAt[pos]] = 0; in COVER_selectSegment()
520 if (ctx->freqs) { in COVER_ctx_destroy()
521 free(ctx->freqs); in COVER_ctx_destroy()
522 ctx->freqs = NULL; in COVER_ctx_destroy()
591 ctx->freqs = NULL; in COVER_ctx_init()
634 ctx->freqs = ctx->suffix; in COVER_ctx_init()
675 static size_t COVER_buildDictionary(const COVER_ctx_t *ctx, U32 *freqs, in COVER_buildDictionary() argument
698 ctx, freqs, activeDmers, epochBegin, epochEnd, parameters); in COVER_buildDictionary()
770 COVER_buildDictionary(&ctx, ctx.freqs, &activeDmers, dictBuffer, in ZDICT_trainFromBuffer_cover()
1076 U32 *freqs = (U32 *)malloc(ctx->suffixSize * sizeof(U32)); in COVER_tryParameters() local
1081 if (!dict || !freqs) { in COVER_tryParameters()
1086 memcpy(freqs, ctx->freqs, ctx->suffixSize * sizeof(U32)); in COVER_tryParameters()
1089 const size_t tail = COVER_buildDictionary(ctx, freqs, &activeDmers, dict, in COVER_tryParameters()
1106 if (freqs) { in COVER_tryParameters()
1107 free(freqs); in COVER_tryParameters()