Aggregates
Perform powerful calculations across multiple data sets
Last updated
Perform powerful calculations across multiple data sets
Last updated
At Marple we believe that often one graph tells a better story than thousand data points. Yet sometimes the truth is really in a single number.
Marple caters to this by making it possible to add aggregates to your project.
There are three formats in which you can add aggregates to your project.
Table format, useful to show a bunch of data along two variables;
Number format, useful to show a single number;
Bar format, similar to the table format but more visual.
When you click on Add Plot, select the aggregate format you would like to add.
Whichever aggregate format you chose, to edit the calculation of the aggregate, click on the settings wheel in the top right of the plot.
This is where you can edit how your aggregate is calculated.
In the edit screen, you can select the method with which to calculate the aggregate.
Currently, the following aggregation methods are available:
Average
Minimum
Maximum
Sum
Count
In the filter section, you can define the conditions on which you want the metric to be calculated.
Setting a filter is optional. If you define multiple filters, they all need to be true. So filter1 AND filter2 have to be TRUE for a data point to be included in the aggregate.
In case you would like the aggregate to be a table or a bar chart, you should select a signal by which to group the calculation.
To add a signal, simply drag and drop a signal from the Signal List.
After adding a signal, you will have to define the bin range. This defines the range of the signal's Y-axes values that should be included. For instance, in the case of motorsport, laps 0 to 10. This could also be a certain speed range for instance.
Next you should define the bin size. This is the unit by which the range will be divided.
Consider the following example:
If the aggregate format is a bar chart, and the aggregate is the average of the engine temperature or avg(m.engine.temperature)
, you will have the following bar chart.
You can also resample the different input signals, so that you can use signals together with different time bases. By default the frequency is chosen to be the lowest frequency among the input frequencies.
Finally, if you chose a bar chart to visualise your aggregate, you can also set the width of the bars as a share of the available space it should take.