Skip to content

Commit

Permalink
Fix deprecated vcat syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
yuyichao committed Oct 24, 2015
1 parent 642e5fb commit 05bdeba
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/qq.jl
Original file line number Diff line number Diff line change
Expand Up @@ -5,23 +5,23 @@ end

function qqbuild(x::Vector, y::Vector)
n = min(length(x), length(y))
grid = [0.0:(1 / (n - 1)):1.0]
grid = [0.0:(1 / (n - 1)):1.0;]
qx = quantile(x, grid)
qy = quantile(y, grid)
return QQPair(qx, qy)
end

function qqbuild(x::Vector, d::UnivariateDistribution)
n = length(x)
grid = [(1 / (n - 1)):(1 / (n - 1)):(1.0 - (1 / (n - 1)))]
grid = [(1 / (n - 1)):(1 / (n - 1)):(1.0 - (1 / (n - 1)));]
qx = quantile(x, grid)
qd = quantile(d, grid)
return QQPair(qx, qd)
end

function qqbuild(d::UnivariateDistribution, x::Vector)
n = length(x)
grid = [(1 / (n - 1)):(1 / (n - 1)):(1.0 - (1 / (n - 1)))]
grid = [(1 / (n - 1)):(1 / (n - 1)):(1.0 - (1 / (n - 1)));]
qd = quantile(d, grid)
qx = quantile(x, grid)
return QQPair(qd, qx)
Expand Down

0 comments on commit 05bdeba

Please sign in to comment.