{"uid":"cap_sbK3lb1DpskJ8whziFWeE","slug":"shipment-costs-trailing-mean-series-cc91122c","name":"Shipment Costs Trailing Mean Series","description":"Shipment costs - Trailing mean series: Trailing mean series for Shipment costs. 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 trailing mean series deliverable.","url":"https://market.datapackvibe.com/x402/assistant-sector-analytics-shipment-costs-rolling?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"rows":{"type":"array","items":{"type":"object","required":["row_id","carrier","date","weight_kg","shipping_cost"],"properties":{"date":{"type":"string","default":"","pattern":"^\\d{4}-\\d{2}-\\d{2}$","maxLength":10},"row_id":{"type":"string","default":"","maxLength":80,"minLength":1},"carrier":{"type":"string","default":"","maxLength":80},"weight_kg":{"type":["number","null"],"maximum":1000000000000,"minimum":-1000000000000},"shipping_cost":{"type":["number","null"],"maximum":1000000000000,"minimum":-1000000000000}},"additionalProperties":false},"default":[{"date":"2026-10-01","row_id":"row-1","carrier":"group-a","weight_kg":10,"shipping_cost":1},{"date":"2026-10-02","row_id":"row-2","carrier":"group-b","weight_kg":20,"shipping_cost":2},{"date":"2026-10-03","row_id":"row-3","carrier":"group-a","weight_kg":15,"shipping_cost":3},{"date":"2026-10-04","row_id":"row-4","carrier":"group-b","weight_kg":30,"shipping_cost":4}],"maxItems":200,"minItems":1},"field":{"enum":["weight_kg","shipping_cost"],"type":"string","default":"weight_kg"},"window":{"type":"integer","default":2,"maximum":200,"minimum":2}}},"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_c2cU_oUYIZdV-AhfNHOxP","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 trailing (rolling) mean series over shipment cost or weight records grouped by carrier, returning smoothed time-series values for up to 200 rows.","exampleAgentPrompt":"Calculate a trailing mean series for my shipment cost data — I have 4 rows with carriers group-a and group-b dated 2026-10-01 through 2026-10-04 with shipping costs 1 through 4, and I want a rolling window of 3 on the shipping_cost field.","exampleUseCases":[{"title":"Carrier cost trend smoothing","prompt":"I have daily shipment records for two carriers over the past month and want to smooth out the shipping_cost noise — can you compute a trailing mean with a window of 7 for each day's data so I can see the underlying trend?"},{"title":"Weight-based rolling average for freight planning","prompt":"Run a trailing mean series on my freight weight data using a window of 5 — I'll give you 50 rows with row IDs, dates, carrier names, and weight_kg values, and I need the smoothed weight output for capacity planning."},{"title":"Comparing carrier cost smoothness","prompt":"I have 100 shipment records split between three carriers across Q3 and I want to see a rolling 10-day mean of shipping_cost to compare how stable each carrier's pricing has been over time."}],"resultDescription":"Returns a bounded trailing mean series derived from the supplied shipment records, showing smoothed numeric values for the selected field (weight_kg or shipping_cost) computed over the specified rolling window, with one output value per record after the initial window is filled.","failureModes":["Fewer than 1 row supplied — minimum item constraint violated","Window size larger than number of rows — insufficient data for any mean calculation","Invalid date format not matching YYYY-MM-DD pattern — schema validation error","Numeric field values outside allowed range (±1 trillion) — rejected by schema","More than 200 rows supplied — maxItems constraint exceeded","Missing required fields (row_id, carrier, date, weight_kg, shipping_cost) — request rejected","Payment not provided or insufficient — x402 payment required error"],"whenToPreferThis":"Choose this endpoint when you need a fast, local rolling/trailing mean computation on structured shipment records (up to 200 rows) without requiring external data enrichment or forecasting. Ideal for smoothing noisy cost or weight time-series data in logistics workflows where you control the input data and need a bounded, deterministic statistical series returned quickly at low cost ($0.01 USDC).","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-15T18:47:55.446Z","isFirstParty":false,"canonicalSlug":"shipment-costs-trailing-mean-series-cc91122c"}