Lines Matching refs:freqs
135 U32 *freqs; member
157 U32 *freqs, U32 begin, U32 end, in FASTCOVER_selectSegment() argument
185 activeSegment.score += freqs[idx]; in FASTCOVER_selectSegment()
197 activeSegment.score -= freqs[delIndex]; in FASTCOVER_selectSegment()
221 freqs[i] = 0; in FASTCOVER_selectSegment()
272 free(ctx->freqs); in FASTCOVER_ctx_destroy()
273 ctx->freqs = NULL; in FASTCOVER_ctx_destroy()
284 FASTCOVER_computeFrequency(U32* freqs, const FASTCOVER_ctx_t* ctx) in FASTCOVER_computeFrequency() argument
298 freqs[dmerIndex]++; in FASTCOVER_computeFrequency()
382 ctx->freqs = (U32*)calloc(((U64)1 << f), sizeof(U32)); in FASTCOVER_ctx_init()
383 if (ctx->freqs == NULL) { in FASTCOVER_ctx_init()
390 FASTCOVER_computeFrequency(ctx->freqs, ctx); in FASTCOVER_ctx_init()
401 U32* freqs, in FASTCOVER_buildDictionary() argument
425 ctx, freqs, epochBegin, epochEnd, parameters, segmentFreqs); in FASTCOVER_buildDictionary()
486 U32* freqs = (U32*) malloc(((U64)1 << ctx->f) * sizeof(U32)); in FASTCOVER_tryParameters() local
487 if (!segmentFreqs || !dict || !freqs) { in FASTCOVER_tryParameters()
492 memcpy(freqs, ctx->freqs, ((U64)1 << ctx->f) * sizeof(U32)); in FASTCOVER_tryParameters()
494 { const size_t tail = FASTCOVER_buildDictionary(ctx, freqs, dict, dictBufferCapacity, in FASTCOVER_tryParameters()
513 free(freqs); in FASTCOVER_tryParameters()
600 const size_t tail = FASTCOVER_buildDictionary(&ctx, ctx.freqs, dictBuffer, in ZDICT_trainFromBuffer_fastCover()