Package org.deidentifier.arx.risk
Klasse RiskModelSampleWildcard
java.lang.Object
org.deidentifier.arx.risk.RiskModelSampleWildcard
This class implements risk measures as proposed by El Emam in
"Guide to the De-Identification of Personal Health Information",
"Measuring the Probability of Re-Identification" considering
suppressed values as a wildcard
-
Konstruktorübersicht
KonstruktorenKonstruktorBeschreibungRiskModelSampleWildcard(DataHandleInternal handle, Set<String> identifiers, double threshold, String wildcard, WrappedBoolean stop, WrappedInteger progress) Creates a new instance -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungdoubleReturns the average riskdoubleReturns the effective risk threshold, which may differ from the specified risk threshold due to rounding issuesdoubleReturns the highest riskdoubleReturns the lowest riskdoubleReturns the fraction of records with a risk higher than the given thresholddoubleReturns the user-specified threshold.doubleReturns the success rate
-
Konstruktordetails
-
RiskModelSampleWildcard
public RiskModelSampleWildcard(DataHandleInternal handle, Set<String> identifiers, double threshold, String wildcard, WrappedBoolean stop, WrappedInteger progress) Creates a new instance- Parameter:
handle- handleidentifiers- quasi-identifiersthreshold- Note: due to rounding issues this threshold may be exceeded by up to 1%wildcard- string representing suppressed valuesstop- stop flagprogress- progress
-
-
Methodendetails
-
getAverageRisk
public double getAverageRisk()Returns the average risk- Gibt zurück:
- the average risk
-
getEffectiveRiskThreshold
public double getEffectiveRiskThreshold()Returns the effective risk threshold, which may differ from the specified risk threshold due to rounding issues- Gibt zurück:
- the effective risk threshold
-
getHighestRisk
public double getHighestRisk()Returns the highest risk- Gibt zurück:
- the highest risk
-
getLowestRisk
public double getLowestRisk()Returns the lowest risk- Gibt zurück:
- the lowest risk
-
getRecordsAtRisk
public double getRecordsAtRisk()Returns the fraction of records with a risk higher than the given threshold- Gibt zurück:
- the records at risk
-
getRiskThreshold
public double getRiskThreshold()Returns the user-specified threshold. Note: the effective threshold may differ slightly due to rounding issues. See:getEffectiveRiskThreshold- Gibt zurück:
-
getSuccessRate
public double getSuccessRate()Returns the success rate- Gibt zurück:
-