#include <weight.hpp>
Public Types | |
enum | weight_value_type { weight, ratio, logweight, logratio, one } |
The difference between weight- (logweight) and ratio- (logratio) type weights is how the initialization function is treated, how values are precalculated, but when reading values from the weights, this is transparent.
The difference between weight- (ratio-) and logweight (logratio) is that for the latter the init function must be and the output will be the natural logarithm of the value.
one gives a uniform weight