Lines Matching refs:freqs
127 U32 *freqs; member
149 U32 *freqs, U32 begin, U32 end, in FASTCOVER_selectSegment() argument
177 activeSegment.score += freqs[idx]; in FASTCOVER_selectSegment()
189 activeSegment.score -= freqs[delIndex]; in FASTCOVER_selectSegment()
213 freqs[i] = 0; in FASTCOVER_selectSegment()
264 free(ctx->freqs); in FASTCOVER_ctx_destroy()
265 ctx->freqs = NULL; in FASTCOVER_ctx_destroy()
276 FASTCOVER_computeFrequency(U32* freqs, const FASTCOVER_ctx_t* ctx) in FASTCOVER_computeFrequency() argument
290 freqs[dmerIndex]++; in FASTCOVER_computeFrequency()
374 ctx->freqs = (U32*)calloc(((U64)1 << f), sizeof(U32)); in FASTCOVER_ctx_init()
375 if (ctx->freqs == NULL) { in FASTCOVER_ctx_init()
382 FASTCOVER_computeFrequency(ctx->freqs, ctx); in FASTCOVER_ctx_init()
393 U32* freqs, in FASTCOVER_buildDictionary() argument
417 ctx, freqs, epochBegin, epochEnd, parameters, segmentFreqs); in FASTCOVER_buildDictionary()
478 U32 *freqs = (U32*) malloc(((U64)1 << ctx->f) * sizeof(U32)); in FASTCOVER_tryParameters() local
479 if (!segmentFreqs || !dict || !freqs) { in FASTCOVER_tryParameters()
484 memcpy(freqs, ctx->freqs, ((U64)1 << ctx->f) * sizeof(U32)); in FASTCOVER_tryParameters()
486 { const size_t tail = FASTCOVER_buildDictionary(ctx, freqs, dict, dictBufferCapacity, in FASTCOVER_tryParameters()
505 free(freqs); in FASTCOVER_tryParameters()
592 const size_t tail = FASTCOVER_buildDictionary(&ctx, ctx.freqs, dictBuffer, in ZDICT_trainFromBuffer_fastCover()