public class RiskModelSampleRiskDistribution
extends java.lang.Object
Constructor and Description |
---|
RiskModelSampleRiskDistribution(RiskModelHistogram histogram,
ARXConfiguration config,
boolean anonymous)
Creates a new instance
|
Modifier and Type | Method and Description |
---|---|
double[] |
getAvailableRiskThresholds()
Returns a set of risk thresholds for which data is maintained.
|
double |
getFractionOfRecordsAtCumulativeRisk(double risk)
Returns the fraction of records with a risk lower than or equal
to the given threshold.
|
double |
getFractionOfRecordsAtRisk(double risk)
Returns the fraction of records with a risk which equals the given threshold.
|
double[] |
getFractionOfRecordsForCumulativeRiskThresholds()
Returns an array of cumulative risks for the risk thresholds
|
double[] |
getFractionOfRecordsForRiskThresholds()
Returns an array of risks for the risk thresholds
|
double |
getRiskThreshold()
Returns the threshold for which is closest to the threshold which has
been defined on prosecutor risks and for which data is maintained
|
public RiskModelSampleRiskDistribution(RiskModelHistogram histogram, ARXConfiguration config, boolean anonymous)
histogram
- config
- anonymous
- public double[] getAvailableRiskThresholds()
public double getFractionOfRecordsAtCumulativeRisk(double risk)
risk
- public double getFractionOfRecordsAtRisk(double risk)
risk
- public double[] getFractionOfRecordsForCumulativeRiskThresholds()
public double[] getFractionOfRecordsForRiskThresholds()
public double getRiskThreshold()