22 #include <gsl/gsl_sf_gamma.h>
23 #include <gsl/gsl_sf_log.h>
24 #include <gsl/gsl_math.h>
double escapeCost(statistics_t stats, Uint *distinct)
Calculates the cost of escapes in a node.
double kt(statistics_t stats)
Calculates the Krichevsky-Trofimov probability assignment.
double hAlpha()
Returns the binary entropy of 1/alphasize.
double log2Alpha()
Returns the log2 of the alphabet size.
unsigned long Uint
Unsigned int type.
Structure that saves statistics for each tree node in the encoder.
double nodeCost(statistics_t stats)
Calculates the cost of a node.