-
Notifications
You must be signed in to change notification settings - Fork 30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Arithmetic Median for relative values #365
Comments
We don't create attributeTypes in the cc.json right now, which should give us information about whether a metric value should be interpreted as a relative or absolute one. This needs to be implemented before or while working on this issue |
We will still have problems for metrics that depend on rloc. |
Well it's correct fromt the point of view of the mean. But, yeah it's not representative. Do you have a different average idea? The one I know is the median which is:
If you have three numbers 2,3,2.000 the median is 3. If you have an event amount of numbers it's apparanetly the sum of the two middle numbers, divided by two. For your example it's still 50% coverage. I see no way around that besides also displaying a deviation. Do you have another idea? |
I changed the request to calculate the median instead of the mean. |
The median is not only applicable to relative values, there are multiple other metrics where the median makes more sense than summing them up. Eg: age in weeks, number of authors, ... I suggest we change the name of the attribute types to reflect that (e.g. AttributeType.median) and set reasonable values in the importers. In future versions it may also make sense to let the user switch between different aggregation methods in the visualization. |
@alexhunziker i totally agree! But I would not rename the attributeType relative to median inside the cc.json. In my opinion the word „relative“ still describes the functionality correctly and therefor a renaming would only cause more issues with existing cc.json files. |
Speaking of the .cc.json files; in our documentation we describe the AttributeType like this:
Whereas the cc.json of our demo file contains this:
Which I belive is not consistent with the above schema. Or am I wrong? |
That is actually true. I think we should therefore address the JSON validation. |
Feature Request
If a metric is relative the arithmetic median for the numbers should be shown when hovering over folders instead of summing them. Also show an arithmetic median symbol.
When I hover over a single building
Then the metric wihout any symbol is shown
Given I have a cc.json that contains relative attribute types
When I hover over a package
and the metric selected is a relative one
Then the airthmetic median for that metric with the correct symbol should be shown.
Calculating the Median
If you have three numbers 2,3,2.000 the median is 3. If you have an event amount of numbers it's apparanetly the sum of the two middle numbers, divided by two. At least that is my understanding, please confirm from a different source as well.
This list of statistical symbols suggests that the median symbol looks like a wave above the number.
The text was updated successfully, but these errors were encountered: