PostGIS  2.5.1dev-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 358 of file gserialized_estimate.c.

Referenced by compute_gserialized_stats_mode().

359 {
360  int i;
361  float total = 0;
362  /* Calculate total */
363  for ( i = 0; i < nvals; i++ )
364  total += vals[i];
365 
366  return total;
367 }
Here is the caller graph for this function: