Package org.harctoolbox.analyze
Class RepeatFinder
java.lang.Object
org.harctoolbox.analyze.RepeatFinder
-
Nested Class Summary
-
Constructor Summary
ConstructorDescriptionRepeatFinder
(int[] data) RepeatFinder
(IrSequence irSequence) RepeatFinder
(IrSequence irSequence, Double absoluteTolerance, Double relativeTolerance) RepeatFinder
(IrSequence irSequence, Double absoluteTolerance, Double relativeTolerance, Double minRepeatLastGap) -
Method Summary
Modifier and TypeMethodDescriptionstatic IrSignal
findRepeat
(ModulatedIrSequence irSequence) static IrSignal
findRepeat
(ModulatedIrSequence irSequence, Double absoluteTolerance, Double relativeTolerance) static IrSignal
findRepeatClean
(ModulatedIrSequence irSequence) static IrSignal
findRepeatClean
(ModulatedIrSequence irSequence, Double absoluteTolerance, Double relativeTolerance) static double
static double
static double
static void
setDefaultAbsoluteTolerance
(double aDefaultAbsoluteTolerance) static void
setDefaultMinRepeatLastGap
(double aDefaultMinRepeatLastGap) static void
setDefaultRelativeTolerance
(double aDefaultRelativeTolerance) toIrSignal
(IrSequence irSequence, double frequency) toIrSignal
(ModulatedIrSequence irSequence) toIrSignalClean
(ModulatedIrSequence irSequence)
-
Constructor Details
-
RepeatFinder
public RepeatFinder(IrSequence irSequence, Double absoluteTolerance, Double relativeTolerance, Double minRepeatLastGap) -
RepeatFinder
-
RepeatFinder
-
RepeatFinder
- Throws:
OddSequenceLengthException
-
-
Method Details
-
getDefaultMinRepeatLastGap
public static double getDefaultMinRepeatLastGap()- Returns:
- the defaultMinRepeatLastGap
-
setDefaultMinRepeatLastGap
public static void setDefaultMinRepeatLastGap(double aDefaultMinRepeatLastGap) - Parameters:
aDefaultMinRepeatLastGap
- the defaultMinRepeatLastGap to set
-
getDefaultRelativeTolerance
public static double getDefaultRelativeTolerance()- Returns:
- the defaultRelativeTolerance
-
setDefaultRelativeTolerance
public static void setDefaultRelativeTolerance(double aDefaultRelativeTolerance) - Parameters:
aDefaultRelativeTolerance
- the defaultRelativeTolerance to set
-
getDefaultAbsoluteTolerance
public static double getDefaultAbsoluteTolerance()- Returns:
- the defaultabsoluteTolerance
-
setDefaultAbsoluteTolerance
public static void setDefaultAbsoluteTolerance(double aDefaultAbsoluteTolerance) - Parameters:
aDefaultAbsoluteTolerance
- the defaultAbsoluteTolerance to set
-
findRepeat
public static IrSignal findRepeat(ModulatedIrSequence irSequence, Double absoluteTolerance, Double relativeTolerance) -
findRepeat
-
findRepeatClean
public static IrSignal findRepeatClean(ModulatedIrSequence irSequence, Double absoluteTolerance, Double relativeTolerance) throws InvalidArgumentException - Throws:
InvalidArgumentException
-
findRepeatClean
public static IrSignal findRepeatClean(ModulatedIrSequence irSequence) throws InvalidArgumentException - Throws:
InvalidArgumentException
-
toIrSignal
- Parameters:
irSequence
-frequency
-- Returns:
- the irSignal
-
toIrSignal
- Parameters:
irSequence
-- Returns:
- the irSignal
-
toIrSignalClean
- Throws:
InvalidArgumentException
-
getRepeatFinderData
-