Class SimpleChi2VarDelta

java.lang.Object
clickTrainDetector.clickTrainAlgorithms.mht.mhtvar.SimpleChi2Var
clickTrainDetector.clickTrainAlgorithms.mht.mhtvar.SimpleChi2VarDelta
All Implemented Interfaces:
MHTChi2Var<PamDataUnit>, Cloneable
Direct Known Subclasses:
AmplitudeChi2, BearingChi2Delta

public abstract class SimpleChi2VarDelta extends SimpleChi2Var
Chi2 variable which compares the difference between the two three values. i.e difference between val2-val1 and val3-val2;
Author:
Jamie Macaulay
  • Constructor Details

    • SimpleChi2VarDelta

      public SimpleChi2VarDelta()
  • Method Details

    • 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.