Buckets:

soixantesept's picture
download
raw
517 Bytes
#include "PredictorMain.hpp"
#include "ArithmeticEncoder.hpp"
PredictorMain::PredictorMain(Shared* const sh) : Predictor(sh), sse(sh) {
mixerFactory = new MixerFactory(shared);
models = new Models(sh, mixerFactory);
models->trainModelsWhenNeeded();
contextModel = new ContextModel(sh, models, mixerFactory);
}
PredictorMain::~PredictorMain() {
delete models;
delete contextModel;
delete mixerFactory;
}
uint32_t PredictorMain::p() {
uint32_t pr = contextModel->p();
pr = sse.p(pr);
return pr;
}

Xet Storage Details

Size:
517 Bytes
·
Xet hash:
4698777a9ed46d24cbab16d23d08d91176aebf4ca71e371d7fa278c8c0187c9c

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.