src/vlc.c File Reference

#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <math.h>
#include <it/vlc.h>
#include <it/io.h>

Go to the source code of this file.

Functions

vlc_tvlc_new (int n)
vlc_tvlc_clone (const vlc_t *vlc)
void vlc_delete (vlc_t *vlc)
vlc_tvlc_flc (int nb_bits)
vlc_tvlc_huffman (const vec pdf)
vlc_tvlc_hu_tucker (const vec pdf)
static void vlc_affect_codewords_subtree (vlc_t *vlc, int s)
void vlc_affect_codewords (vlc_t *vlc)
int vlc_minh (const vlc_t *vlc)
int vlc_maxh (const vlc_t *vlc)
double vlc_mdl (const vlc_t *vlc, const vec pdf)
double vlc_kraft_sum (const vlc_t *vlc)
void vlc_quasi_lexicographic (const vlc_t *vlc, const vec pdf, const vec symb)
static void vlc_nodes_pdf_tmp (const vlc_t *vlc, int node, vec pdf)
vec vlc_nodes_pdf (const vlc_t *vlc, vec pdf)
vec vlc_nodes_proba0 (const vlc_t *vlc, vec pdf)
static void vlc_nodes_expectation_tmp (const vlc_t *vlc, int node, vec pdf, vec symbols)
vec vlc_nodes_expectation (const vlc_t *vlc, vec pdf, vec symb)
vec vlc_nodes_entropy (const vlc_t *vlc, vec pdf)
static double vlc_node_variance_tmp (const vlc_t *vlc, int node, double rec_value, vec pdf, vec symb, double *p_sum_pdf)
double vlc_node_variance (const vlc_t *vlc, int node, vec pdf, vec symb)
vec vlc_nodes_variance (const vlc_t *vlc, vec pdf, vec symb)
vec vlc_nodes_delta_energy (const vlc_t *vlc, vec pdf, vec symb)
void vlc_print (const vlc_t *vlc)
vlc_tvlc_read (const char *svlc)
ivec vlc_energy_order (const vlc_t *vlc, vec pdf, vec symb)
void vlc_print_all (const vlc_t *vlc, vec pdf, vec symb)
int vlc_nb_bits_required (const vlc_t *vlc, ivec S)
bvec vlc_encode_concat (const vlc_t *vlc, ivec S)
ivec vlc_decode_concat (const vlc_t *vlc, bvec E)
ivec vlc_decode_concat_N (const vlc_t *vlc, bvec E, idx_t N)


Function Documentation

static void vlc_affect_codewords_subtree ( vlc_t vlc,
int  s 
) [static]

Definition at line 254 of file vlc.c.

References vlc_t::cwd, vlc_t::cwd_length, DUMM_NODE, vlc_get_child0(), vlc_get_child1(), and vlc_is_leaf().

Referenced by vlc_affect_codewords().

static double vlc_node_variance_tmp ( const vlc_t vlc,
int  node,
double  rec_value,
vec  pdf,
vec  symb,
double *  p_sum_pdf 
) [static]

Definition at line 596 of file vlc.c.

References DUMM_NODE, vlc_get_child0(), and vlc_get_child1().

Referenced by vlc_node_variance().

static void vlc_nodes_expectation_tmp ( const vlc_t vlc,
int  node,
vec  pdf,
vec  symbols 
) [static]

Definition at line 517 of file vlc.c.

References DUMM_NODE, vlc_get_child0(), and vlc_get_child1().

Referenced by vlc_nodes_expectation().

static void vlc_nodes_pdf_tmp ( const vlc_t vlc,
int  node,
vec  pdf 
) [static]

Definition at line 447 of file vlc.c.

References DUMM_NODE, vlc_get_child0(), and vlc_get_child1().

Referenced by vlc_nodes_pdf().


Hosted by
Copyright (C) 2005-2006 Hervé Jégou
Vivien Chappelier
Francois Cayre
libit logo courtesy of Jonathan Delhumeau