Class CalibrationInfo

java.lang.Object
d3.calibration.CalibrationInfo

public class CalibrationInfo extends Object
Information for a specific calibration type. Will hopefully be able to unpack the cal xml in a rational way into these objects.
Author:
Doug Gillespie
  • Field Details

  • Constructor Details

    • CalibrationInfo

      public CalibrationInfo(String name)
  • Method Details

    • apply_cal

      public float[] apply_cal(float[] rawData)
      Apply this calibration to an aarry of data.
      Attempts to replicate the functionality of Marks Johnson's matlab function apply_cal(...)
      Parameters:
      rawData - unprocessed data from swv file.
      p -
      t -
      Returns:
      calibrated data
    • apply_cal

      public float[] apply_cal(float[] rawData, Double p, Double t)
      Apply this calibration to an array of data.
      Attempts to replicate the functionality of Marks Johnson's matlab function apply_cal(...)
      Parameters:
      rawData - unprocessed data from swv file.
      p -
      t -
      Returns:
      calibrated data
    • getNewChild

      public CalibrationInfo getNewChild(String childName)
      Makes a new child of this calibration when the xml cal file is being scanned.
      Parameters:
      childName - Name of xml node / calibration info.
      Returns:
      new calibrationinfo.
    • findCalibrationInfo

      public CalibrationInfo findCalibrationInfo(String string)
      Find a calibration info. Multi layered informs can be searated by a ':' character ('.' didn't work for some unknown reason.
      Parameters:
      string -
      Returns: