NAME
find_weighted_hull_average - Finds a weighted hull average.
SYNOPSIS
#include "h/h_ave.h"
Example compile flags (system dependent):
-DLINUX_X86_64 -DLINUX_X86_64_OPTERON -DGNU_COMPILER
-I/home/kobus/include
-L/home/kobus/misc/load/linux_x86_64_opteron -L/usr/lib/x86_64-linux-gnu
-lKJB -lfftw3 -lgsl -lgslcblas -ljpeg -lSVM -lstdc++ -lpthread -lSLATEC -lg2c -lacml -lacml_mv -lblas -lg2c -lncursesw
int find_weighted_hull_average
(
const Hull *hp,
double (*weight_fn)(const Vector *),
Vector **average_vpp
);
DESCRIPTION
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
(recommended!).
RETURNS
NO_ERROR on success: ERROR on failure.
RELATED
approximate_hull_average, Hull
DISCLAIMER
This software is not adequatedly tested. It is recomended that
results are checked independantly where appropriate.
AUTHOR
Kobus Barnard
DOCUMENTER
Lindsay Martin and Kobus Barnard
SEE ALSO
approximate_hull_average
,
get_hull_CM_and_volume
,
find_constrained_hull_average