void qh_allstatF(void) { zdef_(zdoc, Zdoc7, "statistics for merging", -1); zdef_(zinc, Zpremergetot, "merge iterations", -1); zdef_(zadd, Zmergeinittot, "ave. initial non-convex ridges per iteration", Zpremergetot); zdef_(zadd, Zmergeinitmax, " maximum", -1); zdef_(zadd, Zmergesettot, " ave. additional non-convex ridges per iteration", Zpremergetot); zdef_(zadd, Zmergesetmax, " maximum additional in one pass", -1); zdef_(zadd, Zmergeinittot2, "initial non-convex ridges for post merging", -1); zdef_(zadd, Zmergesettot2, " additional non-convex ridges", -1); zdef_(wmax, Wmaxoutside, "max distance of vertex or coplanar point above facet(w/roundoff)", -1); zdef_(wmin, Wminvertex, "max distance of merged vertex below facet(or roundoff)", -1); zdef_(zinc, Zwidefacet, "centrums frozen due to a wide merge", -1); zdef_(zinc, Zwidevertices, "centrums frozen due to extra vertices", -1); zzdef_(zinc, Ztotmerge, "total number of facets or cycles of facets merged", -1); zdef_(zinc, Zmergesimplex, "merged a simplex", -1); zdef_(zinc, Zonehorizon, "simplices merged into coplanar horizon", -1); zzdef_(zinc, Zcyclehorizon, "cycles of facets merged into coplanar horizon", -1); zzdef_(zadd, Zcyclefacettot, " ave. facets per cycle", Zcyclehorizon); zdef_(zmax, Zcyclefacetmax, " max. facets", -1); zdef_(zinc, Zmergeintohorizon, "new facets merged into horizon", -1); zdef_(zinc, Zmergenew, "new facets merged", -1); zdef_(zinc, Zmergehorizon, "horizon facets merged into new facets", -1); zdef_(zinc, Zmergevertex, "vertices deleted by merging", -1); zdef_(zinc, Zcyclevertex, "vertices deleted by merging into coplanar horizon", -1); zdef_(zinc, Zdegenvertex, "vertices deleted by degenerate facet", -1); zdef_(zinc, Zmergeflipdup, "merges due to flipped facets in duplicated ridge", -1); zdef_(zinc, Zneighbor, "merges due to redundant neighbors", -1); zdef_(zadd, Ztestvneighbor, "non-convex vertex neighbors", -1); }
void qh_allstatB(void) { zzdef_(zdoc, Zdoc1, "summary information", -1); zdef_(zinc, Zvertices, "number of vertices in output", -1); zdef_(zinc, Znumfacets, "number of facets in output", -1); zdef_(zinc, Znonsimplicial, "number of non-simplicial facets in output", -1); zdef_(zinc, Znowsimplicial, "number of simplicial facets that were merged", -1); zdef_(zinc, Znumridges, "number of ridges in output", -1); zdef_(zadd, Znumridges, "average number of ridges per facet", Znumfacets); zdef_(zmax, Zmaxridges, "maximum number of ridges", -1); zdef_(zadd, Znumneighbors, "average number of neighbors per facet", Znumfacets); zdef_(zmax, Zmaxneighbors, "maximum number of neighbors", -1); zdef_(zadd, Znumvertices, "average number of vertices per facet", Znumfacets); zdef_(zmax, Zmaxvertices, "maximum number of vertices", -1); zdef_(zadd, Znumvneighbors, "average number of neighbors per vertex", Zvertices); zdef_(zmax, Zmaxvneighbors, "maximum number of neighbors", -1); zdef_(wadd, Wcpu, "cpu seconds for qhull after input", -1); zdef_(zinc, Ztotvertices, "vertices created altogether", -1); zzdef_(zinc, Zsetplane, "facets created altogether", -1); zdef_(zinc, Ztotridges, "ridges created altogether", -1); zdef_(zinc, Zpostfacets, "facets before post merge", -1); zdef_(zadd, Znummergetot, "average merges per facet(at most 511)", Znumfacets); zdef_(zmax, Znummergemax, " maximum merges for a facet(at most 511)", -1); zdef_(zinc, Zangle, NULL, -1); zdef_(wadd, Wangle, "average angle(cosine) of facet normals for all ridges", Zangle); zdef_(wmax, Wanglemax, " maximum angle(cosine) of facet normals across a ridge", -1); zdef_(wmin, Wanglemin, " minimum angle(cosine) of facet normals across a ridge", -1); zdef_(wadd, Wareatot, "total area of facets", -1); zdef_(wmax, Wareamax, " maximum facet area", -1); zdef_(wmin, Wareamin, " minimum facet area", -1); }
void qh_allstatC(void) { zdef_(zdoc, Zdoc9, "build hull statistics", -1); zzdef_(zinc, Zprocessed, "points processed", -1); zzdef_(zinc, Zretry, "retries due to precision problems", -1); zdef_(wmax, Wretrymax, " max. random joggle", -1); zdef_(zmax, Zmaxvertex, "max. vertices at any one time", -1); zdef_(zinc, Ztotvisible, "ave. visible facets per iteration", Zprocessed); zdef_(zinc, Zinsidevisible, " ave. visible facets without an horizon neighbor", Zprocessed); zdef_(zadd, Zvisfacettot, " ave. facets deleted per iteration", Zprocessed); zdef_(zmax, Zvisfacetmax, " maximum", -1); zdef_(zadd, Zvisvertextot, "ave. visible vertices per iteration", Zprocessed); zdef_(zmax, Zvisvertexmax, " maximum", -1); zdef_(zinc, Ztothorizon, "ave. horizon facets per iteration", Zprocessed); zdef_(zadd, Znewfacettot, "ave. new or merged facets per iteration", Zprocessed); zdef_(zmax, Znewfacetmax, " maximum(includes initial simplex)", -1); zdef_(wadd, Wnewbalance, "average new facet balance", Zprocessed); zdef_(wadd, Wnewbalance2, " standard deviation", -1); zdef_(wadd, Wpbalance, "average partition balance", Zpbalance); zdef_(wadd, Wpbalance2, " standard deviation", -1); zdef_(zinc, Zpbalance, " number of trials", -1); zdef_(zinc, Zsearchpoints, "searches of all points for initial simplex", -1); zdef_(zinc, Zdetsimplex, "determinants computed(area & initial hull)", -1); zdef_(zinc, Znoarea, "determinants not computed because vertex too low", -1); zdef_(zinc, Znotmax, "points ignored(!above max_outside)", -1); zdef_(zinc, Znotgood, "points ignored(!above a good facet)", -1); zdef_(zinc, Znotgoodnew, "points ignored(didn't create a good new facet)", -1); zdef_(zinc, Zgoodfacet, "good facets found", -1); zzdef_(zinc, Znumvisibility, "distance tests for facet visibility", -1); zdef_(zinc, Zdistvertex, "distance tests to report minimum vertex", -1); zzdef_(zinc, Ztotcheck, "points checked for facets' outer planes", -1); zzdef_(zinc, Zcheckpart, " ave. distance tests per check", Ztotcheck); }
void qh_allstatE(void) { zzdef_(zinc, Zpartitionall, "distance tests for initial partition", -1); zdef_(zinc, Ztotpartition, "partitions of a point", -1); zzdef_(zinc, Zpartition, "distance tests for partitioning", -1); zzdef_(zinc, Zdistcheck, "distance tests for checking flipped facets", -1); zzdef_(zinc, Zdistconvex, "distance tests for checking convexity", -1); zdef_(zinc, Zdistgood, "distance tests for checking good point", -1); zdef_(zinc, Zdistio, "distance tests for output", -1); zdef_(zinc, Zdiststat, "distance tests for statistics", -1); zdef_(zinc, Zdistplane, "total number of distance tests", -1); zdef_(zinc, Ztotpartcoplanar, "partitions of coplanar points or deleted vertices", -1); zzdef_(zinc, Zpartcoplanar, " distance tests for these partitions", -1); zdef_(zinc, Zcomputefurthest, "distance tests for computing furthest", -1); }
void qh_allstatD(void) { zdef_(zinc, Zvisit, "resets of visit_id", -1); zdef_(zinc, Zvvisit, " resets of vertex_visit", -1); zdef_(zmax, Zvisit2max, " max visit_id/2", -1); zdef_(zmax, Zvvisit2max, " max vertex_visit/2", -1); zdef_(zdoc, Zdoc4, "partitioning statistics(see previous for outer planes)", -1); zzdef_(zadd, Zdelvertextot, "total vertices deleted", -1); zdef_(zmax, Zdelvertexmax, " maximum vertices deleted per iteration", -1); zdef_(zinc, Zfindbest, "calls to findbest", -1); zdef_(zadd, Zfindbesttot, " ave. facets tested", Zfindbest); zdef_(zmax, Zfindbestmax, " max. facets tested", -1); zdef_(zadd, Zfindcoplanar, " ave. coplanar search", Zfindbest); zdef_(zinc, Zfindnew, "calls to findbestnew", -1); zdef_(zadd, Zfindnewtot, " ave. facets tested", Zfindnew); zdef_(zmax, Zfindnewmax, " max. facets tested", -1); zdef_(zinc, Zfindnewjump, " ave. clearly better", Zfindnew); zdef_(zinc, Zfindnewsharp, " calls due to qh_sharpnewfacets", -1); zdef_(zinc, Zfindhorizon, "calls to findhorizon", -1); zdef_(zadd, Zfindhorizontot, " ave. facets tested", Zfindhorizon); zdef_(zmax, Zfindhorizonmax, " max. facets tested", -1); zdef_(zinc, Zfindjump, " ave. clearly better", Zfindhorizon); zdef_(zinc, Zparthorizon, " horizon facets better than bestfacet", -1); zdef_(zinc, Zpartangle, "angle tests for repartitioned coplanar points", -1); zdef_(zinc, Zpartflip, " repartitioned coplanar points for flipped orientation", -1); }
void qh_allstatD(void) { zdef_(zdoc, Zdoc4, "partitioning statistics (see previous for outer planes)", -1); zzdef_(zadd, Zdelvertextot, "total vertices deleted", -1); zdef_(zmax, Zdelvertexmax, " maximum vertices deleted per iteration", -1); zdef_(zinc, Zfindbest, "calls to findbest", -1); zdef_(zadd, Zfindbesttot, " ave. facets tested", Zfindbest); zdef_(zmax, Zfindbestmax, " max. facets tested", -1); zdef_(zadd, Zfindcoplanar, " ave. coplanar search", Zfindbest); zdef_(zinc, Zfindnew, "calls to findbestnew", -1); zdef_(zadd, Zfindnewtot, " ave. facets tested", Zfindnew); zdef_(zmax, Zfindnewmax, " max. facets tested", -1); zdef_(zinc, Zfindnewjump, " ave. clearly better", Zfindnew); zdef_(zinc, Zfindnewsharp, " calls due to qh_sharpnewfacets", -1); zdef_(zinc, Zfindhorizon, "calls to findhorizon", -1); zdef_(zadd, Zfindhorizontot, " ave. facets tested", Zfindhorizon); zdef_(zmax, Zfindhorizonmax, " max. facets tested", -1); zdef_(zinc, Zfindjump, " ave. clearly better", Zfindhorizon); zdef_(zinc, Zparthorizon, " horizon facets better than bestfacet", -1); zdef_(zinc, Zpartangle, "angle tests for repartitioned coplanar points", -1); zdef_(zinc, Zpartflip, " repartitioned coplanar points for flipped orientation", -1); zdef_(zinc, Zpartinside, "inside points", -1); zdef_(zinc, Zpartnear, " inside points kept with a facet", -1); zdef_(zinc, Zcoplanarinside, " inside points that were coplanar with a facet", -1); zdef_(wadd, Wmaxout, "difference in max_outside at final check", -1); }
void qh_allstatE2(void) { zdef_(zdoc, Zdoc5, "statistics for matching ridges", -1); zdef_(zinc, Zhashlookup, "total lookups for matching ridges of new facets", -1); zdef_(zinc, Zhashtests, "average number of tests to match a ridge", Zhashlookup); zdef_(zinc, Zhashridge, "total lookups of subridges(duplicates and boundary)", -1); zdef_(zinc, Zhashridgetest, "average number of tests per subridge", Zhashridge); zdef_(zinc, Zdupsame, "duplicated ridges in same merge cycle", -1); zdef_(zinc, Zdupflip, "duplicated ridges with flipped facets", -1); zdef_(zdoc, Zdoc6, "statistics for determining merges", -1); zdef_(zinc, Zangletests, "angles computed for ridge convexity", -1); zdef_(zinc, Zbestcentrum, "best merges used centrum instead of vertices",-1); zzdef_(zinc, Zbestdist, "distance tests for best merge", -1); zzdef_(zinc, Zcentrumtests, "distance tests for centrum convexity", -1); zzdef_(zinc, Zdistzero, "distance tests for checking simplicial convexity", -1); zdef_(zinc, Zcoplanarangle, "coplanar angles in getmergeset", -1); zdef_(zinc, Zcoplanarcentrum, "coplanar centrums in getmergeset", -1); zdef_(zinc, Zconcaveridge, "concave ridges in getmergeset", -1); }
void qh_allstatE(void) { zdef_(zinc, Zpartinside, "inside points", -1); zdef_(zinc, Zpartnear, " inside points kept with a facet", -1); zdef_(zinc, Zcoplanarinside, " inside points that were coplanar with a facet", -1); zdef_(zinc, Zbestlower, "calls to findbestlower", -1); zdef_(zinc, Zbestlowerv, " with search of vertex neighbors", -1); zdef_(wadd, Wmaxout, "difference in max_outside at final check", -1); zzdef_(zinc, Zpartitionall, "distance tests for initial partition", -1); zdef_(zinc, Ztotpartition, "partitions of a point", -1); zzdef_(zinc, Zpartition, "distance tests for partitioning", -1); zzdef_(zinc, Zdistcheck, "distance tests for checking flipped facets", -1); zzdef_(zinc, Zdistconvex, "distance tests for checking convexity", -1); zdef_(zinc, Zdistgood, "distance tests for checking good point", -1); zdef_(zinc, Zdistio, "distance tests for output", -1); zdef_(zinc, Zdiststat, "distance tests for statistics", -1); zdef_(zinc, Zdistplane, "total number of distance tests", -1); zdef_(zinc, Ztotpartcoplanar, "partitions of coplanar points or deleted vertices", -1); zzdef_(zinc, Zpartcoplanar, " distance tests for these partitions", -1); zdef_(zinc, Zcomputefurthest, "distance tests for computing furthest", -1); }
/*-<a href="qh-stat.htm#TOC" >-------------------------------</a><a name="allstatA">-</a> qh_allstatA() define statistics in groups of 20 notes: (otherwise, 'gcc -O2' uses too much memory) uses qhstat.next */ void qh_allstatA(void) { /* zdef_(type,name,doc,average) */ zzdef_(zdoc, Zdoc2, "precision statistics", -1); zdef_(zinc, Znewvertex, NULL, -1); zdef_(wadd, Wnewvertex, "ave. distance of a new vertex to a facet(!0s)", Znewvertex); zzdef_(wmax, Wnewvertexmax, "max. distance of a new vertex to a facet", -1); zdef_(wmax, Wvertexmax, "max. distance of an output vertex to a facet", -1); zdef_(wmin, Wvertexmin, "min. distance of an output vertex to a facet", -1); zdef_(wmin, Wmindenom, "min. denominator in hyperplane computation", -1); qhstat precision= qhstat next; /* call qh_precision for each of these */ zzdef_(zdoc, Zdoc3, "precision problems (corrected unless 'Q0' or an error)", -1); zzdef_(zinc, Zcoplanarridges, "coplanar half ridges in output", -1); zzdef_(zinc, Zconcaveridges, "concave half ridges in output", -1); zzdef_(zinc, Zflippedfacets, "flipped facets", -1); zzdef_(zinc, Zcoplanarhorizon, "coplanar horizon facets for new vertices", -1); zzdef_(zinc, Zcoplanarpart, "coplanar points during partitioning", -1); zzdef_(zinc, Zminnorm, "degenerate hyperplanes recomputed with gaussian elimination", -1); zzdef_(zinc, Znearlysingular, "nearly singular or axis-parallel hyperplanes", -1); zzdef_(zinc, Zback0, "zero divisors during back substitute", -1); zzdef_(zinc, Zgauss0, "zero divisors during gaussian elimination", -1); zzdef_(zinc, Zmultiridge, "ridges with multiple neighbors", -1); }
void qh_allstatI(void) { qhstat vridges= qhstat next; zzdef_(zdoc, Zdoc11, "Voronoi ridge statistics", -1); zzdef_(zinc, Zridge, "non-simplicial Voronoi vertices for all ridges", -1); zzdef_(wadd, Wridge, " ave. distance to ridge", Zridge); zzdef_(wmax, Wridgemax, " max. distance to ridge", -1); zzdef_(zinc, Zridgemid, "bounded ridges", -1); zzdef_(wadd, Wridgemid, " ave. distance of midpoint to ridge", Zridgemid); zzdef_(wmax, Wridgemidmax, " max. distance of midpoint to ridge", -1); zzdef_(zinc, Zridgeok, "bounded ridges with ok normal", -1); zzdef_(wadd, Wridgeok, " ave. angle to ridge", Zridgeok); zzdef_(wmax, Wridgeokmax, " max. angle to ridge", -1); zzdef_(zinc, Zridge0, "bounded ridges with near-zero normal", -1); zzdef_(wadd, Wridge0, " ave. angle to ridge", Zridge0); zzdef_(wmax, Wridge0max, " max. angle to ridge", -1); zdef_(zdoc, Zdoc12, "Triangulation statistics(Qt)", -1); zdef_(zinc, Ztricoplanar, "non-simplicial facets triangulated", -1); zdef_(zadd, Ztricoplanartot, " ave. new facets created(may be deleted)", Ztricoplanar); zdef_(zmax, Ztricoplanarmax, " max. new facets created", -1); zdef_(zinc, Ztrinull, "null new facets deleted(duplicated vertex)", -1); zdef_(zinc, Ztrimirror, "mirrored pairs of new facets deleted(same vertices)", -1); zdef_(zinc, Ztridegen, "degenerate new facets in output(same ridge)", -1); } /* allstat */
void qh_allstatI(void) { qhstat vridges= qhstat next; zzdef_(zdoc, Zdoc11, "Voronoi ridge statistics", -1); zzdef_(zinc, Zridge, "non-simplicial Voronoi vertices for all ridges", -1); zzdef_(wadd, Wridge, " ave. distance to ridge", Zridge); zzdef_(wmax, Wridgemax, " max. distance to ridge", -1); zzdef_(zinc, Zridgemid, "bounded ridges", -1); zzdef_(wadd, Wridgemid, " ave. distance of midpoint to ridge", Zridgemid); zzdef_(wmax, Wridgemidmax, " max. distance of midpoint to ridge", -1); zzdef_(zinc, Zridgeok, "bounded ridges with ok normal", -1); zzdef_(wadd, Wridgeok, " ave. angle to ridge", Zridgeok); zzdef_(wmax, Wridgeokmax, " max. angle to ridge", -1); zzdef_(zinc, Zridge0, "bounded ridges with near-zero normal", -1); zzdef_(wadd, Wridge0, " ave. angle to ridge", Zridge0); zzdef_(wmax, Wridge0max, " max. angle to ridge", -1); } /* allstat */