PostGIS  2.5.0beta2dev-r@@SVN_REVISION@@

◆ total_double()

static double total_double ( const double *  vals,
int  nvals 
)
static

Given double array, return sum of values.

Definition at line 352 of file gserialized_estimate.c.

Referenced by compute_gserialized_stats_mode().

353 {
354  int i;
355  float total = 0;
356  /* Calculate total */
357  for ( i = 0; i < nvals; i++ )
358  total += vals[i];
359 
360  return total;
361 }
Here is the caller graph for this function: