quantified-uncertainty / squiggle

An estimation language
https://squiggle-language.com
MIT License
148 stars 22 forks source link

Mixed Set Additions #3151

Closed OAGr closed 2 months ago

OAGr commented 3 months ago

Some simple functions to help support MixedSet

changeset-bot[bot] commented 3 months ago

🦋 Changeset detected

Latest commit: 391fcb193e21909941d5820caf57d84f076bb7e4

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 6 packages | Name | Type | | ----------------------------------- | ----- | | @quri/squiggle-lang | Patch | | @quri/squiggle-components | Patch | | @quri/prettier-plugin-squiggle | Patch | | @quri/versioned-squiggle-components | Patch | | vscode-squiggle | Patch | | @quri/squiggle-textmate-grammar | Patch |

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

vercel[bot] commented 3 months ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
quri-hub ✅ Ready (Inspect) Visit Preview Apr 4, 2024 2:57pm
squiggle-components ✅ Ready (Inspect) Visit Preview Apr 4, 2024 2:57pm
squiggle-website ✅ Ready (Inspect) Visit Preview Apr 4, 2024 2:57pm
1 Ignored Deployment | Name | Status | Preview | Updated (UTC) | | :--- | :----- | :------ | :------ | | **quri-ui** | ⬜️ Ignored ([Inspect](https://vercel.com/quantified-uncertainty/quri-ui/4NubBQ2b6crz7y3YMzBFk4uuZ5jY)) | [Visit Preview](https://quri-ui-git-mixedset-additions-quantified-uncertainty.vercel.app) | Apr 4, 2024 2:57pm |
OAGr commented 3 months ago

I'd still like to add these functions, but probably in a separate PR:

  1. PointSet.fromMixedSet(contPercent) -> makes uniform dist in this set of ranges.
  2. PointSet.truncate(MixedSet) -> Removes the PointSet outside of the MixedSet.