# Training Attendance Trailing Mean Series

> Training Attendance Trailing Mean Series is a paid API for AI agents from market.datapackvibe.com, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-28).

Computes a trailing (rolling) mean series for training attendance or completion metrics across up to 200 date-keyed course records.

## Facts

- Endpoint: POST https://market.datapackvibe.com/x402/assistant-sector-analytics-training-attendance-rolling?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-28
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/training-attendance-trailing-mean-series-02683b2e
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_xc1PH53VZMb7koeyXAHEQ

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability training-attendance-trailing-mean-series-02683b2e -d '<json body>'
```

Example prompt: 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.

## When to prefer this

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.

## Known failure modes

- 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

## How this service works

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.

## Output

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.

## Request schema (JSON Schema)

```json
{
 "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
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/training-attendance-trailing-mean-series-02683b2e/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from market.datapackvibe.com](https://www.zero.xyz/host/market.datapackvibe.com/llms.txt)
