Coda Distributed File System
Classes | Macros | Enumerations | Functions
histo.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  histo
 
struct  hgram
 

Macros

#define LN2   0.69315 /* natural logarithm of 2.0 */
 
#define RAISE2(x)   (pow(2.0, 1.0 * (x)))
 
#define RAISE10(x)   (pow(10.0, 1.0 * (x)))
 

Enumerations

enum  htype { LINEAR = 1 , LOG2 = 2 , LOG10 = 3 }
 

Functions

int InitHisto (struct hgram *, double, double, int, enum htype)
 
void ClearHisto (struct hgram *)
 
void UpdateHisto (struct hgram *, double)
 
void MUpdateHisto (struct hgram *, double, int)
 
int PrintHisto (FILE *, struct hgram *)
 
int PlotHisto (FILE *, struct hgram *, char *, char *, char *, char *)
 

Macro Definition Documentation

◆ LN2

#define LN2   0.69315 /* natural logarithm of 2.0 */

◆ RAISE10

#define RAISE10 (   x)    (pow(10.0, 1.0 * (x)))

◆ RAISE2

#define RAISE2 (   x)    (pow(2.0, 1.0 * (x)))

Enumeration Type Documentation

◆ htype

enum htype
Enumerator
LINEAR 
LOG2 
LOG10 

Function Documentation

◆ ClearHisto()

void ClearHisto ( struct hgram hg)

◆ InitHisto()

int InitHisto ( struct hgram hg,
double  lolimit,
double  hilimit,
int  bucketcount,
enum  htype 
)

◆ MUpdateHisto()

void MUpdateHisto ( struct hgram hg,
double  newval,
int  number 
)

◆ PlotHisto()

int PlotHisto ( FILE *  outfile,
struct hgram hg,
char *  graphtitle,
char *  xtitle,
char *  ytitle,
char *  psfileprefix 
)

◆ PrintHisto()

int PrintHisto ( FILE *  outfile,
struct hgram hg 
)

◆ UpdateHisto()

void UpdateHisto ( struct hgram hg,
double  newval 
)