public class Analyzer extends Exchange
RepeatFinder
errlimit, versionString
Constructor and Description |
---|
Analyzer(int[] times,
int freq,
int errlimit,
int basis)
Construct an Analyzer from the arguments.
|
Analyzer(int[] times,
int sngl_count,
int rpt_count,
int extra_count,
int rpts,
int freq,
int errlimit,
int basis)
Input is a signal as a timing list of alternating MARK and SPACE times in
microseconds, together with the burst counts of the single, repeat and extra sections and the
number of copies of the repeat section in the timing list.
|
Modifier and Type | Method and Description |
---|---|
String |
getAltLeadout()
Returns alternative leadout sequence, or null if empty.
|
int[][] |
getBursts()
Returns the computed burst pairs.
|
int[] |
getCleansedSignal() |
String |
getIrp()
Returns computed IRP string.
|
String |
getIrpWithAltLeadout()
Returns computed IRP string, together with alterative leadout string.
|
int |
getNumberDistinctBursts() |
int[] |
getSignal()
Returns signal as array of durations.
|
int[] |
getSignalAsBurstIndices()
Returns the signal as a sequence of indices in the burst pairs, as can be returned from getBursts().
|
String |
toString() |
equalTimes, equalTimes, getVersion, outputDebugString, outputDebugString, setDebug
public Analyzer(int[] times, int freq, int errlimit, int basis)
times
- freq
- errlimit
- basis
- RepeatFinder
public Analyzer(int[] times, int sngl_count, int rpt_count, int extra_count, int rpts, int freq, int errlimit, int basis)
sngl_count + rpts*rpt_count + extra_countThis function identifies the distinct bursts in the signal and then averages the times in bursts so taken to be nominally the same. The
errlimit
parameter is used in determining whether
two times should be considered as nominally equal. Two times are nominally equal if they are either
within 2.5% of one another or if their difference in microseconds does not exceed errlimit
.
The errlimit
criterion represents a variation inherent in the signal capture mechanism, the
percentage criterion represents natural variations in the signal.times
- Timing list of alternating MARK and SPACE times in microseconds.sngl_count
- Number of burst pairs in intro sequence.rpt_count
- Number of burst pairs in repeat sequence.extra_count
- Number of burst pairs in ending sequence.rpts
- Number of actual repetitions contained in the times array.errlimit
- Is used in determining whether two times should be considered as nominally equal.freq
- Is in Hz and used only to provide the frequency value in the IRP. It should be >= 0, but -1 may be used to signify that the frequency is not needed.basis
- The number base to be used for the data output in the IRP form.public int[] getCleansedSignal()
public int getNumberDistinctBursts()
public int[] getSignalAsBurstIndices()
public int[] getSignal()
public int[][] getBursts()
public String getIrp()
public String getAltLeadout()
public String getIrpWithAltLeadout()
Copyright © 2016. All rights reserved.