find_weighted_hull_average - Finds a weighted 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,
double (*weight_fn)(const Vector *),
This routine finds the point describing the average of the input hull
weighted by a user supplied call back function.
The first argument "hp" is the address of the convex hull to compute
the average of.
The second argument is a user supplied function to compute the weighting of a
point from a vector of its coordinates.
The third argument "average_vpp" contains the address of a vector
to become thecomputed hull average.
Currently hulls averages are computed using a discrete approximation. The
resolution of the descrete space is user settable with the "hir" option,
provided that the KJB library options are made available to the user
NO_ERROR on success: ERROR on failure.
This software is not adequatedly tested. It is recomended that
results are checked independantly where appropriate.
Lindsay Martin and Kobus Barnard