Class VerboseCSVMeasureOutput

java.lang.Object
dataAnalysis.MeasureOutput
dataAnalysis.measureOutputs.VerboseCSVMeasureOutput

public class VerboseCSVMeasureOutput extends MeasureOutput
This class implements a csv output for measure class.
File output:
CSV output columns
Timestamp (simulation time) Sample Weight
  • Field Details

  • Constructor Details

    • VerboseCSVMeasureOutput

      public VerboseCSVMeasureOutput(Measure measure, SimParameters simParameters, boolean isTerminalSimulation, int parametricStep) throws IOException
      Constructor of a NewCSVMeasureOutput object, using a file.
      Parameters:
      measure - the measure to be sent in output
      simParameters - the simulation parameters
      isTerminalSimulation - whether the simulation is terminal
      parametricStep - the current parametric step
      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