Skip to content

WIP: Add a MeasureBase extension - #92

Draft
oschulz wants to merge 1 commit into
mainfrom
measurebase
Draft

oschulz wants to merge 1 commit into
mainfrom
measurebase

Conversation

@oschulz

@oschulz oschulz commented Sep 19, 2026

Copy link
Copy Markdown
Owner

Written by Claude (Fable 5.1, high effort) on behalf of the maintainer.

Work in progress, companion to JuliaMath/MeasureBase.jl#182 and bat/BAT.jl#581.

Adds a MeasureBase package extension: shapes of MeasureBase measures derive from their variates (varshape for products, powers, Dirac measures, wrapped distributions, pushforwards through shapes, density and weighted measures, with a test-value fallback), unshaped(μ) is the pushforward through the inverse shape, shapes applied to measures give pushforwards, transports report the shape of their results, and NamedTupleDist, ConstValueDist and ReshapedDist convert to MeasureBase products, Dirac measures and pushforwards via asmeasure. The intent is to replace NamedTupleDist by MeasureBase products downstream (BAT).

Requires MeasureBase 0.15 (unreleased, the major-upgrade branch).

https://claude.ai/code/session_01L5yPndh2K6u14z3CwF9YXf

MeasureBase measures get value shapes: varshape for wrapped distributions,
Diracs (constant shapes), named and array products, powers (static sizes
included), pushforwards by shapes, density, weighted and normalized
measures, and binds, whose shapes are derived structurally from the
primary measure and the kernel measure at a test value. unshaped and
shaped application follow MeasureBase's flat variate layout, checked by
a layout conformance test. NamedTupleDist, ConstValueDist and
ReshapedDist convert to measures with asmeasure, nested ones included.

Assisted-By: generative AI

This branch has not been deployed

No deployments
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.

1 participant