Skip to content

Commit 2f49f83

Browse files
committed
Statistics.mean
1 parent c84cc43 commit 2f49f83

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

test/chebyshevjacobitests.jl

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
using FastTransforms, Compat
2-
using Compat.Test, Compat.LinearAlgebra, Compat.Statistics
2+
using Compat.Test, Compat.LinearAlgebra
3+
import Compat.Statistics
34

45
@testset "Chebyshev--Jacobi transform" begin
56
println("Testing the accuracy of asymptotics")
@@ -17,9 +18,9 @@ using Compat.Test, Compat.LinearAlgebra, Compat.Statistics
1718
c = rand(N)
1819
v[i] = log(norm(p2*(p1*c)-c,Inf)/(20N^(1+2max(α,β))*eps()))
1920
end
20-
V[αi,βi] = mean(v)
21+
V[αi,βi] = Statistics.mean(v)
2122
end
22-
@test mean(V) < 2
23+
@test Statistics.mean(V) < 2
2324
end
2425

2526
println("Testing the special cases length(c) = 0,1,2:")

test/sphericalharmonics/slowplantests.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ import FastTransforms: normalizecolumns!, maxcolnorm
2727
nrms[kk] = maxcolnorm(A - Ac)
2828
end
2929
t[j] /= Nr
30-
err[j] = mean(nrms)
30+
err[j] = Statistics.mean(nrms)
3131
println("At a bandlimit of ",n,", the maximum 2-norm in the columns over ",Nr," trials is: ",err[j])
3232
@test err[j] < 10eps()*sqrt(n)
3333
j+=1

0 commit comments

Comments
 (0)