{"uid":"cap_xc1PH53VZMb7koeyXAHEQ","slug":"training-attendance-trailing-mean-series-02683b2e","name":"Training Attendance Trailing Mean Series","description":"Training attendance - Trailing mean series: Trailing mean series for Training attendance. 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-training-attendance-rolling?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"rows":{"type":"array","items":{"type":"object","required":["row_id","course","date","attendees","completions"],"properties":{"date":{"type":"string","default":"","pattern":"^\\d{4}-\\d{2}-\\d{2}$","maxLength":10},"course":{"type":"string","default":"","maxLength":80},"row_id":{"type":"string","default":"","maxLength":80,"minLength":1},"attendees":{"type":["number","null"],"maximum":1000000000000,"minimum":-1000000000000},"completions":{"type":["number","null"],"maximum":1000000000000,"minimum":-1000000000000}},"additionalProperties":false},"default":[{"date":"2026-10-01","course":"group-a","row_id":"row-1","attendees":10,"completions":1},{"date":"2026-10-02","course":"group-b","row_id":"row-2","attendees":20,"completions":2},{"date":"2026-10-03","course":"group-a","row_id":"row-3","attendees":15,"completions":3},{"date":"2026-10-04","course":"group-b","row_id":"row-4","attendees":30,"completions":4}],"maxItems":200,"minItems":1},"field":{"enum":["attendees","completions"],"type":"string","default":"attendees"},"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_Q7sBS13bjCrkPUn33K_dZ","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 for training attendance or completion metrics across up to 200 date-keyed course records.","exampleAgentPrompt":"Calculate a trailing mean series for our training attendance data — I have about 50 records across two courses (group-a and group-b) with daily dates, attendee counts, and completions. Use a window of 7 and smooth the attendees field.","exampleUseCases":[{"title":"Weekly smoothed attendance trend for L&D team","prompt":"I have 90 daily records of training attendance across three courses. Can you compute a 7-day trailing mean on the attendees field so I can see the smoothed trend for our L&D dashboard?"},{"title":"Completion rate smoothing for compliance training","prompt":"Here are 60 records of compliance course completions by date. Please run a trailing mean with a window of 5 on the completions field so I can identify weeks where completion rates were trending up or down."},{"title":"Rolling average for multi-course attendance reporting","prompt":"I need a trailing mean series with a window of 10 for our Q3 training data — about 120 rows across several courses. Compute the rolling average on attendees so we can report smoothed attendance figures to leadership."}],"resultDescription":"Returns a bounded trailing mean series: for each input row, a smoothed numeric value representing the rolling average of the selected field (attendees or completions) over the specified window size. All processing is local with no external enrichment. Output is aligned to the input rows with up to 200 values.","failureModes":["Fewer input rows than the window size may produce null or partial results for early rows","Invalid date format (not YYYY-MM-DD) will cause schema validation failure","Missing required fields (row_id, course, date, attendees, completions) will be rejected","Submitting more than 200 rows will exceed the maxItems limit and be rejected","Window size outside 2–200 range will fail validation","Non-numeric values in attendees or completions fields will be rejected"],"whenToPreferThis":"Use this endpoint when you need a simple, fast, locally-computed rolling/trailing mean for training attendance or completion records without requiring external forecasting or enrichment services. Ideal for smoothing noisy daily training metrics before visualization or reporting, especially when working with up to 200 records and needing a low-cost ($0.01 USDC) computation.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-28T00:38:33.487Z","isFirstParty":false,"canonicalSlug":"training-attendance-trailing-mean-series-02683b2e"}