zenilib  0.5.3.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
vqgen.h File Reference

Go to the source code of this file.

Classes

struct  quant_meta
 
struct  vqgen
 

Typedefs

typedef struct vqgen vqgen
 

Functions

static float * _aux (vqgen *v, long ptr)
 
static float * _now (vqgen *v, long ptr)
 
static float * _point (vqgen *v, long ptr)
 
void vqgen_addpoint (vqgen *v, float *p, float *aux)
 
void vqgen_cellmetric (vqgen *v)
 
void vqgen_init (vqgen *v, int elements, int aux, int entries, float mindist, float(*metric)(vqgen *, float *, float *), float *(*weight)(vqgen *, float *), int centroid)
 
float vqgen_iterate (vqgen *v, int biasp)
 
void vqgen_quantize (vqgen *v, quant_meta *q)
 
void vqgen_unquantize (vqgen *v, quant_meta *q)
 

Typedef Documentation

typedef struct vqgen vqgen

Function Documentation

static float* _aux ( vqgen v,
long  ptr 
)
inlinestatic

Definition at line 61 of file vqgen.h.

References _point(), and vqgen::aux.

static float* _now ( vqgen v,
long  ptr 
)
inlinestatic

Definition at line 65 of file vqgen.h.

References vqgen::elements, and vqgen::entrylist.

static float* _point ( vqgen v,
long  ptr 
)
inlinestatic

Definition at line 57 of file vqgen.h.

References vqgen::aux, vqgen::elements, and vqgen::pointlist.

Referenced by _aux(), _vqgen_seed(), vqgen_addpoint(), vqgen_iterate(), and vqgen_sortmesh().

void vqgen_addpoint ( vqgen v,
float *  p,
float *  aux 
)
void vqgen_cellmetric ( vqgen v)

Definition at line 89 of file vqgen.c.

References _dist(), _now(), vqgen::assigned, directdsort(), vqgen::entries, entries, i, vqgen::it, j, k, vqgen::max, max, min, and qsort().

void vqgen_init ( vqgen v,
int  elements,
int  aux,
int  entries,
float  mindist,
float(*)(vqgen *, float *, float *)  metric,
float *(*)(vqgen *, float *)  weight,
int  centroid 
)
void vqgen_unquantize ( vqgen v,
quant_meta q 
)