Main Content

timeIntervalError

Measure time interval error

Since R2024b

Description

[TIE,TIEs] = timeIntervalError(x,y,SymbolTime = t) measures the time interval error from input jittery waveform by using the specified symbol time.

[TIE,TIEs] = timeIntervalError(y,SampleInterval = s,SymbolTime = t) measures the time interval error by using the specified sample interval and symbol time.

[TIE,TIEs] = timeIntervalError(x,y,xr,yr) measures the time interval error from input jittery waveform with respect to the reference waveform.

[TIE,TIEs] = timeIntervalError(y,yr,SampleInterval = s) measures the time interval error with respect to the reference waveform and specified sample interval.

[TIE,TIEs,TIEindex] = timeIntervalError(___,Name=Value) measures the time interval error using name-value arguments. Unspecified arguments take default values.

Input Arguments

collapse all

Time coordinates of the jittery signal, specified as a monotonically increasing vector.

If you do not provide y, the function interprets x as edge times.

Data Types: double

Amplitude coordinates of the jittery signal, specified as a vector or as an eyeDiagramSI object.

If you do not provide x, the function assumes y is uniformly sampled at the rate specified by SampleInterval.

Data Types: double

Time coordinates of the reference signal, specified as a monotonically increasing vector.

Data Types: double

Amplitude coordinates of the reference signal, specified as a vector. If you do not provide x, yr must be sampled at the same points as y.

Data Types: double

Name-Value Arguments

Specify optional pairs of arguments as Name1=Value1,...,NameN=ValueN, where Name is the argument name and Value is the corresponding value. Name-value arguments must appear after other arguments, but the order of the pairs does not matter.

Example: J = timeIntervalError(x,y,SampleInterval = s) calculates the time interval error from the input waveform defined by (x,y) and sample interval specified by s.

Length of the time interval in the edge occurrences, specified as a scalar.

For any to symbol transitions, if the starting and ending symbols are the same, they can be considered edges of the same type. Interval is the length in edges of the same type between edges used to calculate the TIE. For example, setting Interval to 1 spans one period of a periodic 2-level waveform.

Interval in waveforms.

Data Types: double

Thresholds to separate symbol levels in the jittery waveform, specified as a vector. If you do not provide SymbolThresholds, the function calculates it from the histogram of y.

Data Types: double

Thresholds to separate symbol levels in the reference waveform, specified as a vector. If you do not provide ReferenceThresholds, the function calculates it from the histogram of yr.

Data Types: double

Sample time for uniformly sampled jittery and reference waveforms, specified as a scalar.

When you provide the time vectors of jittery and reference signals, the function ignores SampleInterval and uses time vectors instead.

Data Types: double

Symbol time for uniformly sampled jittery and reference waveforms, specified as a scalar. For clock waveforms, SymbolTime is half the of the period.

Data Types: double

Options to compare the data edge to the clock edge, specified as one of these:

  • time — Compares the closest edge times.

  • order — Compares the first edge on each set.

The function uses this argument in two scenarios only:

  • Both the measured and reference waveforms are clocks.

  • The measured waveform is a data waveform and the reference waveform is a clock waveform.

When both waveforms are data waveforms with the same pattern, the function matches the edges is based on the pattern.

Output Arguments

collapse all

Chronological time interval error, returned as a vector.

Sorted time interval error based on the measured waveform edge, returned as a cell array. Each cell contains a type of edge (symbol transition). The rows of the cell array denotes the origin symbols and the columns denote the destination symbol.

Index for time interval error, returned as an N-by-3 matrix. N is equal to the number of elements in the TIE vector.

Version History

Introduced in R2024b