Compute Data Axis Weights
aps_compute_data_axis_weightsCompute normalized D-axis fractional weights from AccessReceipt sources using role, recency, and content length, returning canonical entries for attribution primitives.
Instructions
Compute the D-axis fractional weight vector from a list of AccessReceipt records with role, timestamp, and content length. Returns canonical DataAxisEntry[] with 6-digit decimal contribution_weight strings that sum to ~1.0 and feed directly into aps_construct_attribution_primitive. Empty input returns an empty array, and all-zero raw weights return an error. Weights = role × recency_decay × length_weight, then normalized. Parameter names match the SDK: sources, action_timestamp, optional profile.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| profile | No | Optional WeightProfile override; defaults to DEFAULT_WEIGHT_PROFILE | |
| sources | Yes | Per-source records with retrieval metadata | |
| action_timestamp | Yes | ISO-8601 UTC ms when the action ran (t_action) |