-
Notifications
You must be signed in to change notification settings - Fork 219
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Exclude suppressed records when analyzing the distribution of output data #365
Comments
Assigned to @srcds as this is a good oppportunity to better get to know ARX. |
Example:
During the anonymization some of the records were removed from the dataset. In the Distribution they are shown in a group labeled as "*" (Area 'A' in the figure). It would be nice to have an option to exclude all removed records from the distribution view. In another example it becomes apparent why: Depending on whether the removed records are only removed from the distribution view or from the entire output data (open point for discussion), a button for toggling this new feature could be located in Area B or Area C. |
The feature is added in this commit . Note: the variable names are modified for better readability. The task has two parts: handling the gui, and handling the frequency Adding a check box button:
In LayoutUtilityStatistics, one can use the following if to customize a specific panel left ot right:
To add a check button, we add swt.widgets.ToolItem for the right panel in the ComponentTitledFolderButtonBar
Then we add an action, here we have two functions inside run above update the frequency by disabling the visualisation, calling update of the histogram distHist and the table distTbl, the enable the visualisation again (probably there is a better way to do this by updating the view directly).
and change the icon and the tooltip message:
} Modifying the frequency to hide suppressed records In ViewStatisticsDistributionHistogram class, the function run calls getFrequencyDistribution which calls another getFrequencyDistribution that does the computation. For now, the current solution is to handle the values and the frequency before using them in the chart e.g. in function onFinish:
then use the new value in the chart
The variable hideSuppressedRecords and a new function update should be added to the parent class ViewStatistics then overridden in ViewStatisticsDistributionHistogram to get the action from the check button in LayoutUtilityStatistics
Update: It seems the class AnalysisContextDistribution handles the data so a suggested solution is to implement a new function to modify the distribution values and frequencies into two new AnalysisContextDistribution members e.g.
Then modify ViewStatisticsDistributionHistogram to use the new values e.g.
then ...
and finally ,,,
The code above includes repetition and does not look nice but it works. |
The suggested solution is in this commmit |
This issue is solved by this PR. |
In “Analyze utility” > “Distribution” it would be valuable to have an option to exclude suppressed records when analyzing the distribution of the output dataset.
The text was updated successfully, but these errors were encountered: