DataMuseum.dk

Presents historical artifacts from the history of:

DKUUG/EUUG Conference tapes

This is an automatic "excavation" of a thematic subset of
artifacts from Datamuseum.dk's BitArchive.

See our Wiki for more about DKUUG/EUUG Conference tapes

Excavated with: AutoArchaeologist - Free & Open Source Software.


top - download
Index: ┃ T h

⟦d9a59564e⟧ TextFile

    Length: 1352 (0x548)
    Types: TextFile
    Names: »histogram.3«

Derivation

└─⟦87ddcff64⟧ Bits:30001253 CPHDIST85 Tape, 1985 Autumn Conference Copenhagen
    └─ ⟦this⟧ »cph85dist/stat/doc/man/histogram.3« 

TextFile

.TH HISTOGRAM 3 "March 5, 1985" "UNIX|STAT 5.0" "UNIX Programmer's Manual"
.SH NAME
histogram, barhist \- histogram and frequency tables
.SH SYNOPSIS
.nf
histogram (vec, n, hist, freq, prop, base, interval)
float	*vec;
double	base;
double	interval;
.fi
.SH DESCRIPTION
.I Histogram
creates a frequency count of the values in vec
and passes it and a bin count to \fIbarhist\fR.
If \fIinterval\fR is 0.0,
a number is cleverly chosen.
The number of bins is calculated to be
.ce
max (1, (max(vec)-min(vec))/interval)
.SH SYNOPSIS
.nf
barhist (count, bins, hist, freq, prop, base, interval)
int 	*count;
double	base;
double	interval;
.fi
.SH DESCRIPTION
.I Barhist
plots the frequencies in \fIcount\fR which is assumed to have \fIbins\fR entries.
For each bin,
.I barhist
computes a midpoint of the bin
.ce
midpoint = base + interval/2 + bin*interval.
If \fIfreq\fR is 1,
frequency counts are printed.
If \fIfreq\fR is greater than 1,
cumulative counts are added.
\fIProp\fR works similarly for proportions.
If \fIhist\fR is 1,
freq[bin] dashes are printed beside each midpoint.
If \fIhist\fR is greater than 1,
it is assumed to be the maximum width of the histogram.
All these options can be combined,
but the display can run off the page if you are not careful.
A good value for \fIhist\fR might be:
.ce
70 - freq * 10 - prop * 10
.SH AUTHOR
Gary Perlman