Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add choose relative weights #6322

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

Asmatzaile
Copy link

@Asmatzaile Asmatzaile commented May 23, 2024

Purpose and Motivation

wchoose and windex don't normalize; that makes it easy to get unexpected results. Instead of modifying them and potentially slowing down existing code, an optional argument is added to .choose.

Fixes #6311.

Types of changes

  • Documentation
  • New feature

To-do list

  • Code is tested
  • All tests are passing
  • Updated documentation
  • This PR is ready for review

Copy link
Member

@telephon telephon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! … I'll also make a forum thread, since I'd like to hear some opinions from others boiut this change.

HelpSource/Classes/SequenceableCollection.schelp Outdated Show resolved Hide resolved
Copy link
Member

@telephon telephon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! now it works, so just cosmetics. Let's see what the discussion on the forum results in.

@telephon
Copy link
Member

telephon commented May 24, 2024

ok, good – thanks! Now let's wait and see what comes out of https://scsynth.org/t/choosing-how-to-choose-with-self-normalising-weights/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Make wchoose and windex use relative weights (normalize by default)
2 participants