videoLat  2.1
Video conferencing delay measurements
Instance Methods | Protected Attributes | Properties | List of all members
MeasurementDistribution Class Reference

#import <MeasurementDistribution.h>

Inheritance diagram for MeasurementDistribution:
Inheritance graph
[legend]
Collaboration diagram for MeasurementDistribution:
Collaboration graph
[legend]

Instance Methods

(MeasurementDistribution *) - initWithSource:
 
(void) - awakeFromNib
 Initializer.
 
(void) - _recompute
 Internal: recompute distribution.
 
(NSNumber *) - valueForIndex:
 Used by GraphView: get one data point.
 
(NSString *) - asCSVString
 Get distribution data as CSV string.
 

Protected Attributes

NSMutableArray * store
 Internal: storage for our distribution bins.
 
int binCount
 Internal: number of bins in store.
 
double binSize
 Internal: width of each bin. More...
 

Properties

double average
 accessor for average of source
 
double stddev
 accessor for stddev of source
 
double max
 current maximum value (value of biggest bin)
 
double maxXaxis
 maximum of source, and therefore our rightmost data point
 
IBOutlet id< GraphDataProviderProtocolsource
 Source of our data points.
 
- Properties inherited from <GraphDataProviderProtocol>
int count
 Number of values available.
 
double average
 Average of all values.
 
double stddev
 Standard deviation of all values.
 
double min
 Minimum value.
 
double max
 Maximum value.
 
double minXaxis
 For distribution plots: minimum bin value.
 
double maxXaxis
 For distribution plots: maximum bin value.
 
double binSize
 x-increments for which new values are available
 

Detailed Description

Compute distributions for datapoints.

This object is created with a MeasurementDataSource and will compute the distribution of the input values over 100 bins. It implements the GraphDataProviderProtocol so it can then be used to show a distribution plot of a set of measurement values.

Method Documentation

◆ initWithSource:()

- (MeasurementDistribution *) initWithSource: (MeasurementDataStore *)  source

Initializer.

Parameters
sourcethe set of datapoints this object should compute the distribution of The current implementation expects the source to be static, i.e. it only recomputes the distribution initially and assumes the data in the source doesn't change.

Member Data Documentation

◆ binSize

- (double) binSize
readassignprotected

Internal: width of each bin.

width of each bin


The documentation for this class was generated from the following files: