zenilib  0.5.3.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
metrics.c File Reference
#include <stdlib.h>
#include <unistd.h>
#include <math.h>
#include "bookutil.h"

Go to the source code of this file.

Functions

static float _dist (int el, float *a, float *b)
 
static float * _now (codebook *c, int i)
 
void cell_spacing (codebook *c)
 
float process_one (codebook *b, int book, float *a, int dim, int step, int addmul, float base)
 
void process_postprocess (codebook **bs, char *basename)
 
void process_preprocess (codebook **bs, char *basename)
 
void process_usage (void)
 
void process_vector (codebook **bs, int *addmul, int inter, float *a, int n)
 

Variables

float bits =0.f
 
int books =0
 
float count =0.f
 
float ** histogram =NULL
 
float ** histogram_error =NULL
 
float ** histogram_errorsq =NULL
 
float ** histogram_hi =NULL
 
float ** histogram_lo =NULL
 
float meanamplitude_acc =0.f
 
float meanamplitudesq_acc =0.f
 
float meanerror_acc =0.f
 
float meanerrorsq_acc =0.f
 

Function Documentation

static float _dist ( int  el,
float *  a,
float *  b 
)
static

Definition at line 83 of file metrics.c.

References i.

Referenced by cell_spacing().

static float* _now ( codebook c,
int  i 
)
static
void cell_spacing ( codebook c)
float process_one ( codebook b,
int  book,
float *  a,
int  dim,
int  step,
int  addmul,
float  base 
)
void process_preprocess ( codebook **  bs,
char *  basename 
)
void process_usage ( void  )

Definition at line 283 of file metrics.c.

void process_vector ( codebook **  bs,
int addmul,
int  inter,
float *  a,
int  n 
)

Definition at line 262 of file metrics.c.

References books, codebook::dim, i, process_one(), and spinnit().

Variable Documentation

float bits =0.f

Definition at line 49 of file metrics.c.

float count =0.f

Definition at line 50 of file metrics.c.

float** histogram =NULL

Definition at line 44 of file metrics.c.

Referenced by process_one(), process_postprocess(), and process_preprocess().

float** histogram_error =NULL

Definition at line 45 of file metrics.c.

Referenced by process_one(), process_postprocess(), and process_preprocess().

float** histogram_errorsq =NULL

Definition at line 46 of file metrics.c.

Referenced by process_one(), process_postprocess(), and process_preprocess().

float** histogram_hi =NULL

Definition at line 47 of file metrics.c.

Referenced by process_one(), process_postprocess(), and process_preprocess().

float** histogram_lo =NULL

Definition at line 48 of file metrics.c.

Referenced by process_one(), process_postprocess(), and process_preprocess().

float meanamplitude_acc =0.f

Definition at line 39 of file metrics.c.

Referenced by process_one(), and process_postprocess().

float meanamplitudesq_acc =0.f

Definition at line 40 of file metrics.c.

Referenced by process_one(), and process_postprocess().

float meanerror_acc =0.f

Definition at line 41 of file metrics.c.

Referenced by process_one(), and process_postprocess().

float meanerrorsq_acc =0.f

Definition at line 42 of file metrics.c.

Referenced by process_one(), and process_postprocess().