#include "hp2graph.h" double areaID(double *xs, UInt *ys, int size) { double area = 0; int i; for(i=1; ivalue; memset(yUInts,0,samplesize*sizeof(UInt)); no++; while(vp) { yUInts[vp->census] = vp->size; if(vp->size > height) height = vp->size; vp = vp->next; } ep->height = height; ep->area = areaID(sampledata,yUInts,samplesize); ep = ep->next; } return no; } double areaAll(void) { int i; double area = 0; for(i=0; iarea; return area; }