BRL-CAD
#include "common.h"
#include <stdio.h>
#include <math.h>
#include <string.h>
#include "bu/hist.h"
#include "bu/log.h"
#include "bu/malloc.h"
Include dependency graph for hist.c:

Go to the source code of this file.

Macros

#define NMARKS   50
 

Functions

void bu_hist_free (struct bu_hist *histp)
 
void bu_hist_init (struct bu_hist *histp, fastf_t min, fastf_t max, size_t nbins)
 
void bu_hist_range (register struct bu_hist *hp, fastf_t low, fastf_t high)
 
HIDDEN void hist_pr_suppress (register const struct bu_hist *histp, const char *title, int zero_suppress)
 
void bu_hist_pr (register const struct bu_hist *histp, const char *title)
 

Detailed Description

General purpose histogram handling routines.

The subroutine bu_hist_range() is used to record items that may extend across multiple "bin"s.

Definition in file hist.c.

Macro Definition Documentation

#define NMARKS   50

Referenced by hist_pr_suppress().

Function Documentation

void bu_hist_range ( register struct bu_hist hp,
fastf_t  low,
fastf_t  high 
)

Definition at line 77 of file hist.c.

References BU_CK_HIST, bu_hist::hg_bins, bu_hist::hg_clumpsize, bu_hist::hg_max, bu_hist::hg_min, bu_hist::hg_nbins, bu_hist::hg_nsamples, and if().

Here is the call graph for this function:

HIDDEN void hist_pr_suppress ( register const struct bu_hist histp,
const char *  title,
int  zero_suppress 
)

Allows caller control over zero-suppression feature.

Definition at line 108 of file hist.c.

References bu_bomb(), BU_CK_HIST, bu_log(), bu_hist::hg_bins, bu_hist::hg_clumpsize, bu_hist::hg_max, bu_hist::hg_min, bu_hist::hg_nbins, bu_hist::hg_nsamples, and NMARKS.

Referenced by bu_hist_pr().

Here is the call graph for this function:

void bu_hist_pr ( register const struct bu_hist histp,
const char *  title 
)

Definition at line 180 of file hist.c.

References hist_pr_suppress().

Here is the call graph for this function: