updating oE statistics


include map.e 
namespace map 
public function statistics(map the_map_p) 

retrieves characteristics of a map.

  1. the_map_p : the map being queried

A sequence, of 7 integers:

  • NUM_ENTRIES -- number of entries
  • NUM_IN_USE -- number of buckets in use
  • NUM_BUCKETS -- number of buckets
  • LARGEST_BUCKET -- size of largest bucket
  • SMALLEST_BUCKET -- size of smallest bucket
  • AVERAGE_BUCKET -- average size for a bucket
  • STDEV_BUCKET -- standard deviation for the bucket length series
Example 1:
sequence s = statistics(mymap) 
printf(1, "The average size of the buckets is %d", s[AVERAGE_BUCKET]) 
Not Categorized, Please Help


Quick Links

User menu

Not signed in.

Misc Menu