skoro v0.0.0

Sampling a quantity from a distribution

sample("x", T, distribution) makes a quantity at an address, scores it by a distribution and returns it, in place of quantity("x", T) followed by the distribution's score, and sample_in does the same for a space given as a value. The core gained the Distribution trait for it, whose one method adds a distribution's term at a quantity, with an implementation for references so that a distribution is passed by value or borrowed; Normal implements it by its own score, which stays, so that a caller scoring by a normal it names imports nothing. A refusal by either step is recorded at the line that called sample. It returns the quantity and not the term: the term is found from the quantity, which is scored at most once, and a model that needs the term's handle writes the two statements. The sugar adds no mathematics: sample builds exactly what those two statements build.

Chore Done Started 2026-11-03 · finished 2026-11-03

sample("x", T, distribution) makes a quantity at an address, scores it by a distribution and returns it, in place of quantity("x", T) followed by the distribution’s score, and sample_in does the same for a space given as a value. The core gained the Distribution trait for it, whose one method adds a distribution’s term at a quantity, with an implementation for references so that a distribution is passed by value or borrowed; Normal implements it by its own score, which stays, so that a caller scoring by a normal it names imports nothing. A refusal by either step is recorded at the line that called sample. It returns the quantity and not the term: the term is found from the quantity, which is scored at most once, and a model that needs the term’s handle writes the two statements. The sugar adds no mathematics: sample builds exactly what those two statements build.

The guide’s first page was rewritten top-down around it. It opens on a hierarchical normal, a point of the plane and its squared range, written with sample, generated from the joint and queried with the range observed for its density and gradient; and only then goes down to programs of plain arithmetic, to the same model written with quantity and score, and to terms written by hand beside likelihood factors. The umbrella crate’s tests hold that model, so that the guide quotes what a user writes.

Where it stands

  1. Plan
  2. Build
  3. Publish

Documents

What it changed

The pages that say what this entry made true:

The crates it changed:

What it revises

History

  1. Started at plan
  2. Approved plan fc450e0
  3. Approved build 92713ad
  4. Reopened plan b14029f The guide's restructure needs tests that build a hierarchical normal with sample, and the same model with quantity and score.
  5. Approved plan a20cfc6
  6. Approved build 353ef48
  7. Approved publish 988614f