Synopsis

PDX_MSGT mth_AveragePoints(long option, int dim, long num_pnts, double *pnts, double *ave_pnt)

Purpose

Find the average point of a set of points

Description

Find the average point of a set of points. The points can be of any dimension, including 1.

Input

option

Options (not used)

dim

The dimension

num_pnts

The number of points

pnts

The points [num_pnts x dim]

Output

ave_pnt

The average point [dim]

Return

      MTH_NOERR
      Low level error return
      .fi