Skip to content

Commit

Permalink
Use immutable sample in weighted sampling single (#73)
Browse files Browse the repository at this point in the history
  • Loading branch information
Tortar committed Apr 27, 2024
1 parent 294e8ad commit c26a496
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/WeightedSamplingSingle.jl
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ end

function itsample(rng::AbstractRNG, iter, wv::Function, method::ReservoirAlgorithm = algAExpJ;
iter_type = infer_eltype(iter))
s = ReservoirSample(rng, iter_type, method, ms)
s = ReservoirSample(rng, iter_type, method, ims)
return update_all!(s, iter, wv)
end

Expand Down

0 comments on commit c26a496

Please sign in to comment.