Skip to content

Commit b1564cd

Browse files
committed
better error message in coherence
1 parent 378198a commit b1564cd

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎src/frd.jl‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ For the signal model ``y = Gu + v``, ``κ²`` is defined as
259259
from which it is obvious that ``0 ≤ κ² ≤ 1`` and that κ² is close to 1 if the noise energy ``S_{vv}`` is small compared to the output energy due to the input ``S_{uu}|G(iω)|^2``.
260260
"""
261261
function coherence(d::AbstractIdData; n = length(d) ÷ 10, noverlap = n ÷ 2, window = hamming, method=:welch, σ = 0.05)
262-
noutputs(d) == 1 || throw(ArgumentError("coherence only supports a single output. Index the data object like `d[i,j]` to obtain the `i`:th output and the `j`:th input."))
262+
noutputs(d) == 1 || throw(ArgumentError("coherence only supports a single output. Index the data object like `d[i,:]` to obtain the `i`:th output."))
263263
if ninputs(d) > 1
264264
return multiple_coherence(d; n, noverlap, window, σ)
265265
end

0 commit comments

Comments
 (0)