NAME
get_hull_CM_and_volume - Finds the hull average and volume.
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 get_hull_CM_and_volume
(
const Hull *hp,
Vector **average_vpp,
double *volume_ptr
);
DESCRIPTION
This routine finds the average (center of mass) of the input hull and its
volume.
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
for the computed hull average. If the hull average is not required, then it
can be NULL.
The third argument "volume_ptr" is a pointer to the volume to be computed. If
the volume is not needed, this argument can be NULL.
RETURNS
NO_ERROR on success: ERROR on failure.
RELATED
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
,
find_weighted_hull_average
,
find_constrained_hull_average