Class SimpleElectricalNoiseFilter
java.lang.Object
clickTrainDetector.clickTrainAlgorithms.mht.electricalNoiseFilter.SimpleElectricalNoiseFilter
- All Implemented Interfaces:
ElectricalNoiseFilter
A simple electrical noise check which checks how low the chi2 value is.
- Author:
- Jamie Macaulay
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondoubleaddChi2Penalties(double chi2, TrackBitSet<?> bitSet, int bitCount, int kcount, int nPruneback) Add electric noise penalty to the chi2 value.
-
Constructor Details
-
SimpleElectricalNoiseFilter
-
-
Method Details
-
addChi2Penalties
public double addChi2Penalties(double chi2, TrackBitSet<?> bitSet, int bitCount, int kcount, int nPruneback) Description copied from interface:ElectricalNoiseFilterAdd electric noise penalty to the chi2 value.- Specified by:
addChi2Penaltiesin interfaceElectricalNoiseFilter- Parameters:
chi2- - the chi2 value to add the penalty to.bitSet- - the bit set representing the current track.bitCount- - the bit count i.e. number of clicks in the train.kcount- - the total data unit count.nPruneback- - the prune back value i.e. what detections on end of track to ignore.- Returns:
- chi2 - the input chi2 value.
-