[
next
] [
prev
] [
prev-tail
] [
tail
] [
up
]
39.25
model
_0/compute
_cumulative
_probs.h
/* Dadas las probabilidades de los símbolos en "prob", calcula las
probabilidades acumuladas en "cum_prob". */
void compute_cumulative_probs() {
int i;
int cum = 0;
for(i=ALPHA_SIZE; i>=0; i--) {
cum_prob[i] = cum;
cum += prob[i];
}
}
[
next
] [
prev
] [
prev-tail
] [
front
] [
up
]