Cached Histogram
If the size of the data array is less than the cache size and greater than or equal to 2, the created histogram will be configured based on whatever data was supplied. However, the bins may change if additional data is collected until the cache is full. Once the cache is full, the returned histogram is permanently configured based on the defined cache size cacheSize.
Parameters
data
an array of observations to use for the histogram
cache Size
the size of the cache used to configure the bins of the histogram. The default is 512.
name
an optional name for the histogram