# Building Occupancy Secondary-Measure Weighted Mean

> Building Occupancy Secondary-Measure Weighted Mean 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-15).

Computes a secondary-measure weighted mean for building occupancy records across floors and dates, using capacity or occupant count as the weight field.

## Facts

- Endpoint: POST https://market.datapackvibe.com/x402/assistant-ar-analytics-building-occupancy-weighted-average?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/building-occupancy-secondary-measure-weighted-mean-cd7a0bf3
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_qbOkr959C0f6hea5LqVtF

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 building-occupancy-secondary-measure-weighted-mean-cd7a0bf3 -d '<json body>'
```

Example prompt: Calculate the capacity-weighted mean occupancy for my building data — I have 4 records: floor group-a on 2026-10-01 with capacity 10 and 1 occupant, group-b on 2026-10-02 with capacity 20 and 2 occupants, group-a on 2026-10-03 with capacity 15 and 3 occupants, and group-b on 2026-10-04 with capacity 30 and 4 occupants — use capacity as the weight field.

## When to prefer this

Choose this endpoint when you need a fast, low-cost ($0.01 USDC) descriptive weighted mean statistic for building occupancy data — specifically when you have typed row-level records with floor, date, capacity, and occupant fields and need a secondary-measure weighted aggregate without forecasting, enrichment, or external lookups. Prefer this over generic statistics tools when your data conforms to the building occupancy schema and you want a bounded, deterministic result on up to 200 records.

## Known failure modes

- Missing required fields (row_id, floor, date, capacity, or occupants) returns a validation error
- Submitting more than 200 rows exceeds the maxItems limit and will be rejected
- Invalid date format (not YYYY-MM-DD) causes a schema validation failure
- All null values for the chosen weight field may result in an undefined or zero weighted mean
- Payment not supplied or insufficient USDC amount blocks the request under x402 protocol

## How this service works

Building occupancy - Secondary-measure weighted mean: Secondary-measure weighted mean for Building occupancy. Up to 200 supplied typed records. Local descriptive analytics; no enrichment or forecast. One of 25 new profiles across 20 shared operations in this industry. 0.01 USDC includes one bounded secondary-measure weighted mean report.

## Output

Returns a weighted mean report for the supplied building occupancy records, computed using the chosen secondary measure (capacity or occupants) as the weight. The result is a single bounded descriptive statistic summarizing occupancy across up to 200 typed records, with no enrichment or forecasting applied.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "rows": {
   "type": "array",
   "items": {
    "type": "object",
    "required": [
     "row_id",
     "floor",
     "date",
     "capacity",
     "occupants"
    ],
    "properties": {
     "date": {
      "type": "string",
      "default": "",
      "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
      "maxLength": 10
     },
     "floor": {
      "type": "string",
      "default": "",
      "maxLength": 80
     },
     "row_id": {
      "type": "string",
      "default": "",
      "maxLength": 80,
      "minLength": 1
     },
     "capacity": {
      "type": [
       "number",
       "null"
      ],
      "maximum": 1000000000000,
      "minimum": -1000000000000
     },
     "occupants": {
      "type": [
       "number",
       "null"
      ],
      "maximum": 1000000000000,
      "minimum": -1000000000000
     }
    },
    "additionalProperties": false
   },
   "default": [
    {
     "date": "2026-10-01",
     "floor": "group-a",
     "row_id": "row-1",
     "capacity": 10,
     "occupants": 1
    },
    {
     "date": "2026-10-02",
     "floor": "group-b",
     "row_id": "row-2",
     "capacity": 20,
     "occupants": 2
    },
    {
     "date": "2026-10-03",
     "floor": "group-a",
     "row_id": "row-3",
     "capacity": 15,
     "occupants": 3
    },
    {
     "date": "2026-10-04",
     "floor": "group-b",
     "row_id": "row-4",
     "capacity": 30,
     "occupants": 4
    }
   ],
   "maxItems": 200,
   "minItems": 1
  },
  "field": {
   "enum": [
    "capacity",
    "occupants"
   ],
   "type": "string",
   "default": "capacity"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/building-occupancy-secondary-measure-weighted-mean-cd7a0bf3/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)
