GBHISTO2D(1) | User Commands | GBHISTO2D(1) |

gbhisto2d - Produce 2D histogram from data

**gbhisto2d** [*options*]

2D histogram on a regular grid. Data are read from standard input as couples (X,Y). If data are treated as continuous, equispaced bins are built and their center coordinates together with the required statistics are printed. For discrete variables, bins are built directly from the given variables.

**-M**- choose the statistics to print for each bin (default 0)
- 0
- occurrences number for continuous binned variables (*)
- 1
- relative frequency for continuous binned variables (*)
- 2
- empirical density for continuous binned variables (*)
- 3
- occurrences number for discrete symmetric variables (bins{X}=bins{Y})
- 4
- relative frequency for discrete symmetric variables (bins{X}=bins{Y})
- 5
- transition matrix (X=>Y)
- 6
- occurrences number for discrete asymmetric variables
- 7
- relative frequency for discrete asymmetric variables
**-n**- number of equispaced bins where the histogram is computed. For output marked with (*), use comma ',' to specify different values for x and y coordinates. (default 10)
**-v**- verbose mode
**-F**- specify the input fields separators (default " \t")
**-h**- this help

Written by Giulio Bottazzi

Report bugs to <gbutils@googlegroups.com>

Package home page <http://cafim.sssup.it/~giulio/software/gbutils/index.html>

Copyright © 2001-2018 Giulio Bottazzi This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License (version 2) as published by the Free Software Foundation;

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

March 2018 | gbhisto2d 5.7.1 |