Package org.harctoolbox.analyze
Class Cleaner
java.lang.Object
org.harctoolbox.analyze.Cleaner
- Direct Known Subclasses:
Analyzer
-
Field Summary
-
Constructor Summary
ModifierConstructorDescriptionprotected
Cleaner
(int[] data, int[] indices, boolean signalMode, Double absoluteTolerance, Double relativeTolerance) Cleaner
(IrSequence irSequence) Cleaner
(IrSequence irSequence, Double absoluteTolerance, Double relativeTolerance) -
Method Summary
Modifier and TypeMethodDescriptionstatic IrSequence
clean
(IrSequence irSequence) static IrSequence
clean
(IrSequence irSequence, Double absoluteTolerance, Double relativeTolerance) static IrSignal
static ModulatedIrSequence
clean
(ModulatedIrSequence irSequence) static ModulatedIrSequence
clean
(ModulatedIrSequence irSequence, Double absoluteTolerance, Double relativeTolerance) cleanedIrSequence
(int nr) int
getCleanedTime
(int i) int
getGaps()
int
getGapsSortedAfterFrequency
(int i) getIndex
(int duration) getName
(int duration) int
int
getNumberFlashes
(int duration) int
getNumberGaps
(int duration) int
int
int
getNumberPairs
(int flash, int gap) protected int
getSequenceBegin
(int n) protected int
getSequenceLength
(int n) protected int
getTimeBaseFromData
(double relativeTolerance) int
getTiming
(int index) protected int
getTotalDuration
(int beg, int length) boolean
static String
int[]
toDurations
(int nr) protected int[]
toDurations
(int beg, int length) toTimingsString
(int nr) protected String
toTimingsString
(int beg, int length)
-
Field Details
-
timings
-
indexData
protected int[] indexData
-
-
Constructor Details
-
Cleaner
- Throws:
InvalidArgumentException
-
Cleaner
public Cleaner(IrSequence irSequence, Double absoluteTolerance, Double relativeTolerance) throws InvalidArgumentException - Throws:
InvalidArgumentException
-
Cleaner
protected Cleaner(int[] data, int[] indices, boolean signalMode, Double absoluteTolerance, Double relativeTolerance) throws InvalidArgumentException - Throws:
InvalidArgumentException
-
-
Method Details
-
clean
public static IrSequence clean(IrSequence irSequence, Double absoluteTolerance, Double relativeTolerance) throws InvalidArgumentException - Throws:
InvalidArgumentException
-
clean
- Throws:
InvalidArgumentException
-
clean
public static ModulatedIrSequence clean(ModulatedIrSequence irSequence, Double absoluteTolerance, Double relativeTolerance) throws InvalidArgumentException - Throws:
InvalidArgumentException
-
clean
public static ModulatedIrSequence clean(ModulatedIrSequence irSequence) throws InvalidArgumentException - Throws:
InvalidArgumentException
-
clean
public static IrSignal clean(IrSignal irSignal, Double absoluteTolerance, Double relativeTolerance) throws InvalidArgumentException - Throws:
InvalidArgumentException
-
mkName
-
isSignalMode
public boolean isSignalMode()- Returns:
- the signalMode
-
getName
-
toIrSequence
-
toDurations
protected int[] toDurations(int beg, int length) -
toTimingsString
-
toTimingsString
-
getTotalDuration
protected int getTotalDuration(int beg, int length) -
getTiming
public int getTiming(int index) -
getIndex
-
getGaps
-
getFlashes
-
getCleanedHistogram
- Returns:
- the cleanedHistogram
-
getNumberGaps
public int getNumberGaps(int duration) -
getNumberFlashes
public int getNumberFlashes(int duration) -
getNumberPairs
public int getNumberPairs(int flash, int gap) -
getGapsSortedAfterFrequency
public int getGapsSortedAfterFrequency(int i) -
getFlashesSortedAfterFrequency
public int getFlashesSortedAfterFrequency(int i) -
getNumberOfGaps
public int getNumberOfGaps() -
getNumberOfFlashes
public int getNumberOfFlashes() -
getSequenceBegin
protected int getSequenceBegin(int n) -
getSequenceLength
protected int getSequenceLength(int n) -
toDurations
public int[] toDurations(int nr) -
cleanedIrSequence
-
cleanedIrSequences
-
toTimingsString
-
getCleanedTime
public int getCleanedTime(int i) -
getNoSequences
public int getNoSequences() -
getTimeBaseFromData
protected int getTimeBaseFromData(double relativeTolerance)
-