-
Notifications
You must be signed in to change notification settings - Fork 0
Advanced Calculations
Mikho Juice edited this page Jun 2, 2017
·
1 revision
In addition to recording and displaying data, BEMSimpleLineGraph can also perform advanced calculations with your data. All calculation methods are available publicly and begin with "calculate". Each method returns an NSNumber
as the result of the calculation based on the data in the graph.
Calculation | Method | Description |
---|---|---|
Average | calculatePointValueAverage |
Calculates the average (mean) of all points on the line graph. See also: Average Lines |
Sum | calculatePointValueSum |
Calculates the sum of all points on the line graph. |
Median | calculatePointValueMedian |
Calculates the median of all points on the line graph. |
Mode | calculatePointValueMode |
Calculates the mode of all points on the line graph. |
Standard deviation | calculateLineGraphStandardDeviation |
Calculates the standard deviation of all points on the line graph. |
Minimum | calculateMinimumPointValue |
Calculates the minimum value of all points on the line graph. |
Maximum | calculateMaximumPointValue |
Calculates the maximum value of all points on the line graph. |