Hi all,
I forgot for the n-th time how to prevent a sampling from having two times
the same value. While I wrote the previous sentence I remembered, but it is
not my issue. I was wondering whether there is an option that would give
all the arguments that can be used in a already implemented function. This
could be useful as many documentations are not complete. I find *methods *not
very informative. Nowhere I can now that what I needed was:
*"replace=false"*
7 methods for generic function *sample*:
- sample(a::*AbstractArray{T,N}*) at
/Users/am909/.julia/v0.4/StatsBase/src/sampling.jl:277
<https://github.com/JuliaStats/StatsBase.jl/tree/cf943919e9033b84ad1591307ddec5e5a6e451da/src/sampling.jl#L277>
- sample*{T}*(a::*AbstractArray{T,N}*, n::*Integer*) at
/Users/am909/.julia/v0.4/StatsBase/src/sampling.jl:320
<https://github.com/JuliaStats/StatsBase.jl/tree/cf943919e9033b84ad1591307ddec5e5a6e451da/src/sampling.jl#L320>
- sample*{T}*(a::*AbstractArray{T,N}*, dims::*Tuple{Vararg{Int64}}*)
at /Users/am909/.julia/v0.4/StatsBase/src/sampling.jl:324
<https://github.com/JuliaStats/StatsBase.jl/tree/cf943919e9033b84ad1591307ddec5e5a6e451da/src/sampling.jl#L324>
- sample(wv::*StatsBase.WeightVec{W,Vec<:AbstractArray{T<:Real,1}}*)
at /Users/am909/.julia/v0.4/StatsBase/src/sampling.jl:335
<https://github.com/JuliaStats/StatsBase.jl/tree/cf943919e9033b84ad1591307ddec5e5a6e451da/src/sampling.jl#L335>
- sample(a::*AbstractArray{T,N}*, wv::
*StatsBase.WeightVec{W,Vec<:AbstractArray{T<:Real,1}}*) at
/Users/am909/.julia/v0.4/StatsBase/src/sampling.jl:347
<https://github.com/JuliaStats/StatsBase.jl/tree/cf943919e9033b84ad1591307ddec5e5a6e451da/src/sampling.jl#L347>
- sample*{T}*(a::*AbstractArray{T,N}*, wv::
*StatsBase.WeightVec{W,Vec<:AbstractArray{T<:Real,1}}*, n::*Integer*)
at/Users/am909/.julia/v0.4/StatsBase/src/sampling.jl:529
<https://github.com/JuliaStats/StatsBase.jl/tree/cf943919e9033b84ad1591307ddec5e5a6e451da/src/sampling.jl#L529>
- sample*{T}*(a::*AbstractArray{T,N}*, wv::
*StatsBase.WeightVec{W,Vec<:AbstractArray{T<:Real,1}}*, dims::
*Tuple{Vararg{Int64}}*) at
/Users/am909/.julia/v0.4/StatsBase/src/sampling.jl:532
<https://github.com/JuliaStats/StatsBase.jl/tree/cf943919e9033b84ad1591307ddec5e5a6e451da/src/sampling.jl#L532>
Thank you very much
Antoine