Lines Matching refs:parameters
416 ZDICT_cover_params_t parameters) { in COVER_selectSegment() argument
418 const U32 k = parameters.k; in COVER_selectSegment()
419 const U32 d = parameters.d; in COVER_selectSegment()
496 static int COVER_checkParameters(ZDICT_cover_params_t parameters, in COVER_checkParameters() argument
499 if (parameters.d == 0 || parameters.k == 0) { in COVER_checkParameters()
503 if (parameters.k > maxDictSize) { in COVER_checkParameters()
507 if (parameters.d > parameters.k) { in COVER_checkParameters()
511 if (parameters.splitPoint <= 0 || parameters.splitPoint > 1){ in COVER_checkParameters()
686 ZDICT_cover_params_t parameters) { in COVER_buildDictionary() argument
691 (U32)dictBufferCapacity, (U32)ctx->suffixSize, parameters.k, 4); in COVER_buildDictionary()
706 ctx, freqs, activeDmers, epochBegin, epochEnd, parameters); in COVER_buildDictionary()
718 segmentSize = MIN(segment.end - segment.begin + parameters.d - 1, tail); in COVER_buildDictionary()
719 if (segmentSize < parameters.d) { in COVER_buildDictionary()
738 ZDICT_cover_params_t parameters) in ZDICT_trainFromBuffer_cover() argument
743 parameters.splitPoint = 1.0; in ZDICT_trainFromBuffer_cover()
745 g_displayLevel = (int)parameters.zParams.notificationLevel; in ZDICT_trainFromBuffer_cover()
747 if (!COVER_checkParameters(parameters, dictBufferCapacity)) { in ZDICT_trainFromBuffer_cover()
763 parameters.d, parameters.splitPoint); in ZDICT_trainFromBuffer_cover()
769 if (!COVER_map_init(&activeDmers, parameters.k - parameters.d + 1)) { in ZDICT_trainFromBuffer_cover()
779 dictBufferCapacity, parameters); in ZDICT_trainFromBuffer_cover()
782 samplesBuffer, samplesSizes, nbSamples, parameters.zParams); in ZDICT_trainFromBuffer_cover()
795 size_t COVER_checkTotalCompressedSize(const ZDICT_cover_params_t parameters, in COVER_checkTotalCompressedSize() argument
811 i = parameters.splitPoint < 1.0 ? nbTrainSamples : 0; in COVER_checkTotalCompressedSize()
821 parameters.zParams.compressionLevel); in COVER_checkTotalCompressedSize()
827 i = parameters.splitPoint < 1.0 ? nbTrainSamples : 0; in COVER_checkTotalCompressedSize()
859 memset(&best->parameters, 0, sizeof(best->parameters)); in COVER_best_init()
909 void COVER_best_finish(COVER_best_t *best, ZDICT_cover_params_t parameters, in COVER_best_finish() argument
942 best->parameters = parameters; in COVER_best_finish()
1065 ZDICT_cover_params_t parameters; member
1078 const ZDICT_cover_params_t parameters = data->parameters; in COVER_tryParameters() local
1086 if (!COVER_map_init(&activeDmers, parameters.k - parameters.d + 1)) { in COVER_tryParameters()
1099 dictBufferCapacity, parameters); in COVER_tryParameters()
1101 …izes, (unsigned)ctx->nbTrainSamples, ctx->nbTrainSamples, ctx->nbSamples, parameters, ctx->offsets, in COVER_tryParameters()
1111 COVER_best_finish(data->best, parameters, selection); in COVER_tryParameters()
1121 ZDICT_cover_params_t* parameters) in ZDICT_optimizeTrainFromBuffer_cover() argument
1124 const unsigned nbThreads = parameters->nbThreads; in ZDICT_optimizeTrainFromBuffer_cover()
1126 parameters->splitPoint <= 0.0 ? COVER_DEFAULT_SPLITPOINT : parameters->splitPoint; in ZDICT_optimizeTrainFromBuffer_cover()
1127 const unsigned kMinD = parameters->d == 0 ? 6 : parameters->d; in ZDICT_optimizeTrainFromBuffer_cover()
1128 const unsigned kMaxD = parameters->d == 0 ? 8 : parameters->d; in ZDICT_optimizeTrainFromBuffer_cover()
1129 const unsigned kMinK = parameters->k == 0 ? 50 : parameters->k; in ZDICT_optimizeTrainFromBuffer_cover()
1130 const unsigned kMaxK = parameters->k == 0 ? 2000 : parameters->k; in ZDICT_optimizeTrainFromBuffer_cover()
1131 const unsigned kSteps = parameters->steps == 0 ? 40 : parameters->steps; in ZDICT_optimizeTrainFromBuffer_cover()
1137 const int displayLevel = parameters->zParams.notificationLevel; in ZDICT_optimizeTrainFromBuffer_cover()
1209 data->parameters = *parameters; in ZDICT_optimizeTrainFromBuffer_cover()
1210 data->parameters.k = k; in ZDICT_optimizeTrainFromBuffer_cover()
1211 data->parameters.d = d; in ZDICT_optimizeTrainFromBuffer_cover()
1212 data->parameters.splitPoint = splitPoint; in ZDICT_optimizeTrainFromBuffer_cover()
1213 data->parameters.steps = kSteps; in ZDICT_optimizeTrainFromBuffer_cover()
1214 data->parameters.shrinkDict = shrinkDict; in ZDICT_optimizeTrainFromBuffer_cover()
1215 data->parameters.zParams.notificationLevel = g_displayLevel; in ZDICT_optimizeTrainFromBuffer_cover()
1217 if (!COVER_checkParameters(data->parameters, dictBufferCapacity)) { in ZDICT_optimizeTrainFromBuffer_cover()
1247 *parameters = best.parameters; in ZDICT_optimizeTrainFromBuffer_cover()