Class TimeDelayChi2Delta

java.lang.Object
clickTrainDetector.clickTrainAlgorithms.mht.mhtvar.SimpleChi2Var
clickTrainDetector.clickTrainAlgorithms.mht.mhtvar.TimeDelayChi2Delta
All Implemented Interfaces:
MHTChi2Var<PamDataUnit>, Cloneable

public class TimeDelayChi2Delta extends SimpleChi2Var
Chi^2 value for time delays. This might be a little more robust than bearing, especially for hydrophone arrays with more than two hydrophones.
Author:
Jamie Macaulay
  • Constructor Details

    • TimeDelayChi2Delta

      public TimeDelayChi2Delta()
  • Method Details

    • getName

      public String getName()
      Description copied from interface: MHTChi2Var
      Get the name of the chi^2 variable.
      Returns:
      the name of the chi^2 variable.
    • getUnits

      public String getUnits()
      Description copied from interface: MHTChi2Var
      Get the data units for the MHTChi2 var.
      Returns:
      the units.
    • updateChi2

      public double updateChi2(PamDataUnit newdataUnit, BitSet bitSet, int bitcount, int kcount, IDIManager idiManager)
      Description copied from interface: MHTChi2Var
      Update the existing chi2 value with a new data unit and track bitset.
      Specified by:
      updateChi2 in interface MHTChi2Var<PamDataUnit>
      Overrides:
      updateChi2 in class SimpleChi2Var
      Parameters:
      newdataUnit - - the new data unit.
      bitSet - - the bitset for the track.
      bitcount - - the number of detections in the track.
      kcount - - the current kcount, the total number of detections added to possibility mix.
      idiManager - - the IDI manager.
      Returns:
      the new chi^2 value
    • calcDeltaChi2

      public double calcDeltaChi2(double[] lastDelta, double[] newDelta, double timeDiff)
      Calculate the chi2 for two different delta values.
      Parameters:
      lastDelta - - the first delta value
      newDelta - - the second delta value
      timeDiff - - the time difference for error calculation
      Returns:
      the chi^2 value.
    • getDiffValue

      public double getDiffValue(PamDataUnit pamDataUnit0, PamDataUnit pamDataUnit1)
      Description copied from class: SimpleChi2Var
      Get the difference in value between two sequential data units. This is top of the chi2 equation.
      Specified by:
      getDiffValue in class SimpleChi2Var
      Parameters:
      pamDataUnit0 - - the first data unit.
      pamDataUnit1 - - the second data unit.
      Returns:
      - the difference in selected variable between the two data units.
    • getErrValue

      public double getErrValue(PamDataUnit pamDataUnit0, PamDataUnit pamDataUnit1)
      Description copied from class: SimpleChi2Var
      Get the error value between two sequential data units. This is denominator of the chi2 equation.
      Specified by:
      getErrValue in class SimpleChi2Var
      Parameters:
      pamDataUnit0 - - the first data unit.
      pamDataUnit1 - - the second data unit.
      Returns:
      - the error between the difference
    • getSettingsPane

      public MHTVarSettingsPane<SimpleChi2VarParams> getSettingsPane()
      Description copied from interface: MHTChi2Var
      Get the settings pane with controls to change MHTChi2Var settings
      Specified by:
      getSettingsPane in interface MHTChi2Var<PamDataUnit>
      Overrides:
      getSettingsPane in class SimpleChi2Var
      Returns:
      the MHTChiVar specific settings pane.
    • isDataBlockCompatible

      public boolean isDataBlockCompatible(PamDataBlock parentDataBlock)
      Description copied from interface: MHTChi2Var
      Check whether a data block is compatible with this type of data unit.
      Specified by:
      isDataBlockCompatible in interface MHTChi2Var<PamDataUnit>
      Overrides:
      isDataBlockCompatible in class SimpleChi2Var
      Parameters:
      parentDataBlock - - the parent data block
      Returns:
      true if the data block is allowed