Skip to content

sample fails to throw error for inconsistent lengths #871

Open
@ParadaCarleton

Description

@ParadaCarleton
julia> rng = Xoshiro(1776)

julia> x
10-element Vector{Float64}:
 0.4552384158732863
 0.5476424498276177
 0.7733535276924052
 0.9405848223512736
 0.02964765308691042
 0.74694291453392
 0.7468008914093891
 0.9766699015845924
 0.08694684883050086
 0.35149138733595564

julia> sample(rng, x, pweights(0:10))  # pweights has length=11
0.74694291453392

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions