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

MEAN2

MEAN2

Name


      MEAN2

Purpose


      Do mean over speicifed dimension.

Category


Calling Sequence


      mn = mean2(a,[dim])

Inputs


      a = Input array (may be multidimensional. in
      dim = optional dimension to collapse. in
        dim must start at 1 for x, 2 for y, ...

Keyword Parameters


Keywords


        /DOUBLE use double precision.
        /NAN treat NaN as missing data.

Outputs


      mn = returned mean (may be an array). out

Common Blocks


Notes


      Note: if dim not given then the overall mean
        is returned. Works like the total function
        but for mean.

Modification History


      R. Sterner, 2003 Jan 23
      R. Sterner, 2003 Feb 13 --- Added /DOUBLE and /NAN.
      R. Sterner, 2009 Oct 14 --- On error return original.
      R. Sterner, 2010 Jun 07 --- Converted arrays from () to [].
  Copyright (C) 2003, 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.



© 2024 NV5 Geospatial Solutions, Inc. |  Legal
   Contact Us