>  Docs Center  >  Libraries  >  JHU/APL/S1R  >  HIST2D

HIST2D

HIST2D

Name


      HIST2D

Purpose


      Compute a 2-d histogram for an array of points.

Category


Calling Sequence


      h2d = hist2d( x, y)

Inputs


      x, y = 2-d point coordinates. in

Keyword Parameters


Keywords


        MIN=mn set lower left corner of region to
          histogram in (x,y) space. If x and y are
          of type byte the default is 0. If MIN is not
          given and type is not byte then the arrays are
          searched for their min values. If MIN is a scalar
          or 1 element array then that value is applied to both
          x and y. To set both x and y minimums separately
          send MIN as the d element array [xmin, ymin].
        MAX=mx set upper right corner of region to
          histogram in (x,y) space. If MAX is not given then
          the arrays are searched for their max values. If MAX
          is scalar or 1 element array that value is applied to
          both x and y. To set both x and y maximums separately
          send MAX as the 2 element array [xmax, ymax].
        BIN=bn sets the histogram bin widths. If BIN is a
          scalar or a single element array then it is applied
          to both x and y. To set both x and y bins separately
          send BIN as the 2 element array [xbin, ybin].
          If BIN is not given then a value is chosen to give
          roughly 200 bins in both x and y.
        /LIST lists the x and y ranges and bin sizes used
          to compute the 2-d histogram.
        OUT=out Returned structure with x and y axes arrays
          and x and y bin widths.

Outputs


      h2d = The computed 2-d histogram of x and y. out

Common Blocks


      array_map_com

Notes


Modification History


      R. Sterner, 24 May, 1991.
      R. Sterner, 2005 Jan 04 --- Added new keyword OUT.
  Copyright (C) 1991, Johns Hopkins University/Applied Physics Laboratory
  This software may be used, copied, or redistributed as long as it is not
  sold and this copyright notice is reproduced on each copy made. This
  routine is provided as is without any express or implied warranties
  whatsoever. Other limitations apply as described in the file disclaimer.txt.



© 2019 Harris Geospatial Solutions, Inc. |  Legal
My Account    |    Store    |    Contact Us