Skip to content

Documentation sample() #876

Closed
Closed
@leoluecken

Description

@leoluecken

Hi! I think the documentation of sample is a bit misleading. I'm referring to this page.

There, we have as a third variant of the function

sample([rng], a, [wv::AbstractWeights], dims::Dims; replace=true, ordered=false)

However, if I understand the source code correctly, there is no implementation of sample with weights, which supports the keyword flags. But I might be mistaken - in this case I appreciate correction.

Functions efraimidis_a_wsample_norep and efraimidis_ares_wsample_norep should should serve for the no-replacement version, right?

Thanks already!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions