Skip to content

Commit

Permalink
Fix check
Browse files Browse the repository at this point in the history
  • Loading branch information
Tortar authored Oct 9, 2024
1 parent ad2d442 commit e3f0037
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/SamplingInterface.jl
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ Base.@constprop :aggressive function itsample(rng::AbstractRNG, iter, n::Int, me
s = ReservoirSample{iter_type}(rng, n, method, ImmutSample(), ordered ? Ord() : Unord())
return update_all!(s, iter, ordered)
else
m = method isa AlgL || method isa AlgR || method isa AlgORDS() ? AlgORDS() : AlgORDSWR()
m = method isa AlgL || method isa AlgR || method isa AlgORDS ? AlgORDS() : AlgORDSWR()
s = collect(StreamSample{iter_type}(rng, iter, n, length(iter), m))
return ordered ? s : shuffle!(rng, s)
end
Expand Down

0 comments on commit e3f0037

Please sign in to comment.