ze-filter  (ze-filter-0.8.0-develop-180218)
ze-bestof-n.h File Reference

Go to the source code of this file.

Classes

struct  bestof_T
 

Macros

#define BOFDIM   48
 
#define __ZE_BESTOF_N_H   1
 

Typedefs

typedef int(* bestcomp_F) (const void *, const void *)
 

Functions

bool bestof_init (bestof_T *b, int dim, bestcomp_F bcmp)
 
bool bestof_add (bestof_T *b, double v)
 
double bestof_average (bestof_T *b)
 
int bestof_count (bestof_T *b)
 

Macro Definition Documentation

◆ __ZE_BESTOF_N_H

#define __ZE_BESTOF_N_H   1

Definition at line 49 of file ze-bestof-n.h.

◆ BOFDIM

#define BOFDIM   48

Definition at line 30 of file ze-bestof-n.h.

Typedef Documentation

◆ bestcomp_F

typedef int(* bestcomp_F) (const void *, const void *)

Definition at line 28 of file ze-bestof-n.h.

Function Documentation

◆ bestof_add()

bool bestof_add ( bestof_T b,
double  v 
)

Definition at line 75 of file ze-bestof-n.c.

◆ bestof_average()

double bestof_average ( bestof_T b)

Definition at line 97 of file ze-bestof-n.c.

◆ bestof_count()

int bestof_count ( bestof_T b)

◆ bestof_init()

bool bestof_init ( bestof_T b,
int  dim,
bestcomp_F  bcmp 
)

Definition at line 51 of file ze-bestof-n.c.