public class CSVFile
extends java.lang.Object
Constructor and Description |
---|
CSVFile(java.io.File out)
Creates a new, empty CSV file at the path specified by out.
|
Modifier and Type | Method and Description |
---|---|
void |
addLeakageData(int observations,
double uncorrectedLeakage,
double correctedLeakage,
double confidenceIntervalLowerBound,
double confidenceIntervalUpperBound,
double upperBoundForZeroLeakage)
Adds a new line of information leakage statistics to the CSV file, given
all of the statistics that need to be written.
|
void |
addLeakageData(Observations observations,
int leakageType)
Adds a new line of information leakage statistics to the CSV file, given
an Observations object.
|
void |
close()
Closes the CSV file.
|
public CSVFile(java.io.File out) throws java.io.FileNotFoundException
out
- The path that the CSV file should be written to.java.io.FileNotFoundException
- If out cannot be written to.public void addLeakageData(int observations, double uncorrectedLeakage, double correctedLeakage, double confidenceIntervalLowerBound, double confidenceIntervalUpperBound, double upperBoundForZeroLeakage)
observations
- The number of observations processed so far.uncorrectedLeakage
- The raw, uncorrected value for leakage.correctedLeakage
- The value of leakage after the correction has
been applied.confidenceInterval
- The confidence interval for the corrected
leakage estimation.upperBoundForZeroLeakage
- The upper bound for the value of
corrected leakage that is consistent with zero leakage.public void addLeakageData(Observations observations, int leakageType)
observations
- The Observations object to use to calculate leakage
statistics.leakageType
- The leakage measurement to calculate. Permitted values
are:
public void close()