PostGIS  2.4.9dev-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 315 of file gserialized_estimate.c.

Referenced by compute_gserialized_stats_mode().

316 {
317  int i;
318  float total = 0;
319  /* Calculate total */
320  for ( i = 0; i < nvals; i++ )
321  total += vals[i];
322 
323  return total;
324 }
Here is the caller graph for this function: