approximate_hull_average - Finds the hull average.
Example compile flags (system dependent):
-DLINUX_X86_64 -DLINUX_X86_64_OPTERON -DGNU_COMPILER
-lKJB -lfftw3 -lgsl -lgslcblas -ljpeg -lSVM -lstdc++ -lpthread -lSLATEC -lg2c -lacml -lacml_mv -lblas -lg2c -lncursesw
const Hull *hp,
This routine finds and approximation of the average (center of mass) of the
The first argument "hp" is the address of the convex hull to compute
the average of. Only 2-D or 3-D hulls are currently supported.
The second argument "average_vpp" contains the address of a vector
describing the computed hull average.
Currently hulls averages are computed using a discrete approximation. The
resolution of the descrete space is user settable with the
"hull-average-resolution" option, provided that the KJB library options are
made available to the user (recommended!).
NO_ERROR on success: ERROR on failure.
This routine is essentially OBSOLETE. It is kept for testing purposes,
and as a template for routines to estimate more complex quantities. For
most purposes, use get_hull_CM_and_volume().
This software is not adequatedly tested. It is recomended that
results are checked independantly where appropriate.
Lindsay Martin and Kobus Barnard