new Histogram( [properties])
Parameters:
| Name | Type | Argument | Description | 
|---|---|---|---|
properties | 
            
            HistogramProperties | 
                
                    <optional> | 
            
            
            see HistogramProperties.  | 
        
- Implements:
 - Source:
 
Example
var Measured = require('measured')
var histogram = new Measured.Histogram();
http.createServer(function(req, res) {
  if (req.headers['content-length']) {
    histogram.update(parseInt(req.headers['content-length'], 10));
  }
});
    
Methods
- 
    
getType()
 - 
    
    
The type of the Metric Impl. MetricTypes.
- Implements:
 - Source:
 
Returns:
The type of the Metric Impl.
- Type
 - string
 
 - 
    
hasValues()
 - 
    
    
Checks whether the histogram contains values.
Returns:
Whether the histogram contains values.
- Type
 - boolean
 
 - 
    
reset()
 - 
    
    
Resets all values. Histograms initialized with custom options will be reset to the default settings (patch welcome).
 - 
    
toJSON()
 - 
    
    
    
    
    
    
- Implements:
 - Source:
 
Returns:
- Type
 - HistogramData
 
 - 
    
update(value)
 - 
    
    
Pushes value into the sample. timestamp defaults to Date.now().
Parameters:
Name Type Description valuenumber  
Measured