Skip to content

Commit

Permalink
Remove unneeded stuff from tests
Browse files Browse the repository at this point in the history
  • Loading branch information
kagalenko-m-b authored and kagalenko-m-b committed Oct 27, 2022
1 parent 1befe4d commit 25a5ea6
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 32 deletions.
4 changes: 2 additions & 2 deletions src/signalcorr.jl
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ function crosscov!(r::AbstractMatrix, x::AbstractVector, y::AbstractMatrix, lags
return r
end

function crosscov!(r::AbstractArray{<:Any}, x::AbstractMatrix, y::AbstractMatrix, lags::AbstractVector{<:Integer}; demean::Bool=true)
function crosscov!(r::AbstractArray{<:Any,3}, x::AbstractMatrix, y::AbstractMatrix, lags::AbstractVector{<:Integer}; demean::Bool=true)
lx = size(x, 1)
nx = size(x, 2)
ny = size(y, 2)
Expand Down Expand Up @@ -458,7 +458,7 @@ function crosscor!(r::AbstractMatrix, x::AbstractVector, y::AbstractMatrix, lags
return r
end

function crosscor!(r::AbstractArray{<:Any}, x::AbstractMatrix, y::AbstractMatrix, lags::AbstractVector{<:Integer}; demean::Bool=true)
function crosscor!(r::AbstractArray{<:Any,3}, x::AbstractMatrix, y::AbstractMatrix, lags::AbstractVector{<:Integer}; demean::Bool=true)
lx = size(x, 1)
nx = size(x, 2)
ny = size(y, 2)
Expand Down
29 changes: 0 additions & 29 deletions test/rcall_test.jl

This file was deleted.

4 changes: 3 additions & 1 deletion test/signalcorr.jl
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ cmplx_x2 = convert(AbstractVector{Complex}, x2)

@test autocov([1:5;]) [2.0, 0.8, -0.2, -0.8, -0.8]
@test autocor([1, 2, 3, 4, 5]) [1.0, 0.4, -0.1, -0.4, -0.4]
@test_throws MethodError autocov([1 missing 2 3 4 5])
@test_throws MethodError autocor([1 missing 2 3 4 5])

acovx1 = [0.755284179631112 + 0.0im,
-0.005333112170365584 - 0.18633291805458002im,
Expand Down Expand Up @@ -144,7 +146,7 @@ function yulewalker_qr(v::AbstractVector)
x = -A\b
end
function toeplitz(v::AbstractVector{T}) where T
N=length(v)
N = length(v)
A = zeros(T, N - 1, N - 1)
for n in 1:N-1
A[n, n+1:end] = conj(v[2:N-n])
Expand Down

0 comments on commit 25a5ea6

Please sign in to comment.