/* Last edited on 2008-08-21 11:16:30 by stolfi */ /*************************************************************************** * Copyright (C) 2008 by Douglas Castro * * douglas@localhost.localdomain * * * ***************************************************************************/ #include int compare_doubles (const void *a, const void *b) { double *ad = (double*)a; double *bd = (double*)b; return (int) (*ad - *bd); } void cria_base(VReg pac[], double xmin[], double xmax[], int profund, Preditor pred, double eps) { int k=5; // posteriormente k pode se tornar argumento da funcao //int ctr = (k*k)/2; int j; // double vet[] = {43.3,2.0, 4.6, 3.2,5.2}; // int p = sizeof(vet)/sizeof(double);// da numero de casa do vetor vet if(profund>=28) { return; } // copiando o pacote double vet2[k*k]; for(j=0;j