Class CSVMeasureOutput

java.lang.Object
dataAnalysis.MeasureOutput
dataAnalysis.measureOutputs.CSVMeasureOutput

public class CSVMeasureOutput extends MeasureOutput
This class implements a csv output for measure class.
File output:
CSV output columns
Mean Value Mean Value Lower Limit Mean Value Upper Limit Discarded Samples Analyzed Samples Max Samples
Author:
Francesco Radaelli
  • Constructor Details

    • CSVMeasureOutput

      public CSVMeasureOutput(Measure measure, boolean append, String fileName) throws IOException
      Constructor of a CSVMeasureOutput object.
      Parameters:
      measure - the measure to be sent in output
      append - true to write at the end of the file (of course it is useful only if a file is used)
      fileName - the name of the file; if null the output will be sent on the standard output
      Throws:
      IOException
    • CSVMeasureOutput

      public CSVMeasureOutput(Measure measure, boolean append) throws IOException
      Constructor of a CSVMeasureOutput object, using a file.
      Parameters:
      measure - the measure to be sent in output
      append - true to write at the end of the file (of course it is useful only if a file is used)
      Throws:
      IOException
  • Method Details

    • write

      public void write(double sample, double weight)
      Description copied from class: MeasureOutput
      Overrides this method to implement the way in which each measure should be written on an output stream. This method is called for every sample.
      Specified by:
      write in class MeasureOutput
      Parameters:
      sample - the measure sample
      weight - the sample weight
    • finalizeMeasure

      public void finalizeMeasure()
      Description copied from class: MeasureOutput
      Overrides this method to implement the way in which the final measure should be written on an output stream. This method is called at the end of a measure.
      Specified by:
      finalizeMeasure in class MeasureOutput
    • getOutputFile

      public File getOutputFile()
      Description copied from class: MeasureOutput
      Returns the output file for this measure output
      Specified by:
      getOutputFile in class MeasureOutput
      Returns:
      a reference to the output file