<< >> Up Title Contents

mean

mean <ik> [,<xmin>,<xmax>]
mean <ik> [,<xmin>,<xmax>,<ymin>,<ymax>]

This command allows to calculate the average and standard deviation for data set <ik>. The area used for the calculation can be given by <xmin>,<xmax> for 2d data or <xmin>,<xmax>,<ymin>,<ymax> for 3d data. If these parameters are omitted, the complete actual plotting range is used for the calculation.

The results are stored in the res[i] variables in the following order:

   3d        2d
  --------------------------------------------------------
  res[0]   res[0]   = Number of stored values
  res[1]   res[1]   = average of x-values
  res[2]   res[2]   = average of y-values
  res[3]            = average of z-values
  res[4]   res[3]   = standard deviation of x-values
  res[5]   res[4]   = standard deviation of y-values
  res[6]            = standard deviation of z-values
  res[7]   res[5]   = # points used for calculation
  res[8]   res[6]   = used range : xmin
  res[9]   res[7]   = used range : xmax
  res[10]           = used range : ymin
  res[11]           = used range : ymax


<< >> Up Title Contents