diff --git a/src/qq.jl b/src/qq.jl index 004423601..e4058b556 100644 --- a/src/qq.jl +++ b/src/qq.jl @@ -5,7 +5,7 @@ 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) @@ -13,7 +13,7 @@ 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) @@ -21,7 +21,7 @@ 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)