logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

gbhisto2d - Produce 2D histogram from data

Author

       Written by Giulio Bottazzi

Description

       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.
       Transition matrices (option -M 5 and -M 8) have final states across  the  rows.  In  case  of  continuous
       variables it is also possible to consider rectangular matrices.

   Options:-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) for discrete symmetric variables (bins{X}=bins{Y})

       6      occurrences number for discrete asymmetric variables

       7      relative frequency for discrete asymmetric variables

       8      transition matrix  (X=>Y) for continuous binned 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

Examples

       gbhisto2d -n 20 < file
              compute a 2D histrogram using 20x20 bins.

       gbhisto2d -M 8 -n 4 < file
              compute transition matrix on equispaced bins for continuous variables.

Name

       gbhisto2d - Produce 2D histogram from data

Reporting Bugs

Synopsis

gbhisto2d [options]

See Also