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

public class IDIChi2 extends SimpleChi2Var
Calculate the chi2 value based on slowly changing inter-click-interval.

The ICI value is a slightly special case becuase it's based ont he IDIManager calculations.

Author:
Jamie Macaulay
  • Constructor Details

    • IDIChi2

      public IDIChi2()
  • Method Details

    • setSimpleChiVarParams

      public void setSimpleChiVarParams(SimpleChi2VarParams params)
      Description copied from class: SimpleChi2Var
      Set the chi2 params for the chi2variable.
      Overrides:
      setSimpleChiVarParams in class SimpleChi2Var
    • 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.
    • 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.
    • calcChi2

      public double calcChi2(ArrayList<PamDataUnit> mhtDataUnits, IDIManager iciManager)
      Description copied from interface: MHTChi2Var
      Calculate the chi2 value for a particular variable from a list of data units in a track.
      Specified by:
      calcChi2 in interface MHTChi2Var<PamDataUnit>
      Overrides:
      calcChi2 in class SimpleChi2Var
      Parameters:
      mhtDataUnits - - a list of items in the track
      iciManager - - class with the the times of the data series starting from data unit 0 at time 0 in seconds. The time series may be based on simply the millisecond time or a more accurate time using sample number and cross correlation.
      Returns:
      chi2 value.
    • 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
    • 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
    • getUnits

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

      public void clear()
      Description copied from class: SimpleChi2Var
      Reset everything.
      Specified by:
      clear in interface MHTChi2Var<PamDataUnit>
      Overrides:
      clear in class SimpleChi2Var