Skip to content

[Housekeeping] Audit duplicated numerical primitives #423

Description

@lrnv

Scope

Inventory repeated numerical mechanisms outside the dedicated quantile work in #421, including parameter inversions, root bracketing, support/boundary handling, expectation-based integration, cdf/ccdf and pdf/logpdf conversions, and sampling fallbacks.

Classify each occurrence as duplicated, mathematically specialized, or numerically distinct before extracting helpers.

Acceptance criteria

  • inventory grouped by mechanism and call sites;
  • focused follow-up proposals for real duplication;
  • characterization tests before consolidation;
  • no universal helper introduced solely because formulas look similar;
  • closed-form and stability-oriented dispatch retained.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions