{"uid":"cap_vtInimQt63DsYqpYZ4cKB","slug":"delivery-timing-secondary-measure-weighted-mean-19ecea87","name":"Delivery Timing Secondary-Measure Weighted Mean","description":"Delivery timing - Secondary-measure weighted mean: Secondary-measure weighted mean for Delivery timing. Up to 200 supplied typed records. Local numeric and data-quality processing; no external enrichment or forecasting. One of 25 profiles or calculations across 20 shared operations in this sector. 0.01 USDC includes one bounded secondary-measure weighted mean deliverable.","url":"https://market.datapackvibe.com/x402/assistant-sector-analytics-delivery-timing-weighted-average?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"rows":{"type":"array","items":{"type":"object","required":["row_id","route","date","delivery_minutes","distance_km"],"properties":{"date":{"type":"string","default":"","pattern":"^\\d{4}-\\d{2}-\\d{2}$","maxLength":10},"route":{"type":"string","default":"","maxLength":80},"row_id":{"type":"string","default":"","maxLength":80,"minLength":1},"distance_km":{"type":["number","null"],"maximum":1000000000000,"minimum":-1000000000000},"delivery_minutes":{"type":["number","null"],"maximum":1000000000000,"minimum":-1000000000000}},"additionalProperties":false},"default":[{"date":"2026-10-01","route":"group-a","row_id":"row-1","distance_km":1,"delivery_minutes":10},{"date":"2026-10-02","route":"group-b","row_id":"row-2","distance_km":2,"delivery_minutes":20},{"date":"2026-10-03","route":"group-a","row_id":"row-3","distance_km":3,"delivery_minutes":15},{"date":"2026-10-04","route":"group-b","row_id":"row-4","distance_km":4,"delivery_minutes":30}],"maxItems":200,"minItems":1},"field":{"enum":["delivery_minutes","distance_km"],"type":"string","default":"delivery_minutes"}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_0HZ3ZKu3bERcr91Cd6e4X","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Computes a distance-weighted mean of delivery minutes (or distance) across up to 200 typed delivery records, grouped by route and date, using local numeric processing.","exampleAgentPrompt":"Calculate a distance-weighted mean of delivery_minutes for these 4 delivery records: route group-a on 2026-10-01 took 10 minutes over 1 km, group-b on 2026-10-02 took 20 minutes over 2 km, group-a on 2026-10-03 took 15 minutes over 3 km, and group-b on 2026-10-04 took 30 minutes over 4 km — weight the average by distance_km.","exampleUseCases":[{"title":"Route efficiency weighted timing analysis","prompt":"I have a week of delivery records for two routes — each row has a route name, date, delivery minutes, and distance in km. Can you compute the distance-weighted mean of delivery_minutes across all rows so I can see which routes are genuinely slow when adjusted for distance?"},{"title":"Fleet performance benchmarking by distance","prompt":"We're benchmarking our courier fleet. Take these 50 delivery records with route IDs, dates, delivery minutes, and distances, and give me the secondary-measure weighted mean of delivery_minutes using distance_km as the weight — I need a single number to compare against last month."},{"title":"Logistics SLA reporting weighted average","prompt":"For our SLA report, I need to know the distance-weighted average delivery time across all 120 shipments this quarter. Each record has a row ID, route, date, delivery time in minutes, and distance in km — compute the weighted mean using distance_km as the secondary measure."}],"resultDescription":"A single weighted mean value for the selected field (delivery_minutes or distance_km), computed by weighting each record's value by the secondary measure (distance_km or delivery_minutes respectively), across all submitted rows — returned as a numeric deliverable with data-quality processing applied locally.","failureModes":["Missing required fields (row_id, route, date, delivery_minutes, distance_km) cause validation errors","More than 200 rows submitted returns a bounds error","Null values in the weight field (distance_km) may produce undefined or skipped weighting behavior","Invalid date format (non-YYYY-MM-DD) causes schema rejection","All-null numeric fields result in no computable mean"],"whenToPreferThis":"Choose this endpoint when you need a distance-weighted (or secondary-measure-weighted) average of delivery timing data across a bounded set of typed records (up to 200), with no need for external enrichment or forecasting. It is ideal for logistics analytics pipelines where local, reproducible numeric aggregation is required and you already have structured route/date/timing data ready to submit.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-18T00:58:38.169Z","isFirstParty":false,"canonicalSlug":"delivery-timing-secondary-measure-weighted-mean-19ecea87"}