particle_size_distribution — DRIVE pharma op

• Data kinds: table × table → table

• Call: import fullseye as fs; fs.ledger.particle_size_distribution(particles, calibration, *, border_policy='exclude', measurement_date=None, bin_edges=None, confidence=0.95, bootstrap_samples=2000, seed=776, upstream_records=None) (to call the implementation directly, import pharmaparticle; pharmaparticle.particle_size_distribution(particles, calibration, *, border_policy='exclude', measurement_date=None, bin_edges=None, confidence=0.95, bootstrap_samples=2000, seed=776, upstream_records=None); from the registry, opsdrive.get("particle_size_distribution"))

• GPU: none (CPU reference implementation only)

Usage

Calibrates a particle table and returns acceptance reasons, bins on three bases, D10/D50/D90 with confidence intervals, and provenance.

D10/D50/D90 use a weighted empirical distribution with repeated diameters centred at their accumulated weight. Unsplit and ambiguous overlaps are excluded, never silently counted as one. Every row is tied to structured blob_split and blob_count_interval records: component IDs and nonzero split labels are one-to-one, and the operator recomputes the provenance digest, area and area-equivalent diameter from the split image. This is an internal consistency check, not tamper detection.

Calibration is scale={value, unit="mm/px", standard_uncertainty} with identifier and validity dates. Out-of-period dates, nonfinite values, missing correction data and zero accepted particles are rejected. Border correction needs inclusion probability, corrected diameter and area, uses 1/p weighting, and propagates scale and correction uncertainty. Below the effective-particle threshold it returns insufficient_sample; number, area and volume bases remain distinct and are not interchangeable with laser diffraction.

Returns reasoned particle rows, counts, three-basis bins, quantiles, calibration provenance and an accepted-proportion interval.

References (sample data, literature)

• Sample-data catalog (download URLs / licences) — 2-D uses skimage.data (BSD/public domain) plus synthetic images; 3-D lists download URLs for real data sources (Stanford, PDS, …).

• Operator provenance and references — the sources of the research/methods this op family came from.

• The canonical algorithm (author, year) and its uses are named in the family usage guide above.

Runnable examples (verified samples that actually call this op)

• poc_compendial_particle_microscopy — py -3.11 examples/poc_compendial_particle_microscopy.py

Ops the type connects to (they accept table as input)

course_layout · course_occupancy · course_contains · world_build · world_camera · world_move · lidar_scan · rss_longitudinal_same

Same category (pharma)

—


*Provenance: pharmaparticle.py — DRIVE operator registry. This per-op note is generated by tools/opdocs.py md (do not hand-edit).*

© 2026 Kazufumi Furuse — Fullseye operator documentation. Licensed under Apache-2.0.