# feat\(netflow-db\): add measure-weighted MAAD estimator · flambo/atlantis

[View on GitCafe](https://git.cafe/flambo/atlantis/commit/50b352bae17d63c34733d95285f82c5c80bf79db)

Repository: [flambo/atlantis](https://git.cafe/flambo/atlantis)

Visibility: public

Requested revision: 50b352bae17d63c34733d95285f82c5c80bf79db

Requested commit: 50b352bae17d63c34733d95285f82c5c80bf79db

Commit: 50b352bae17d63c34733d95285f82c5c80bf79db

Tree: 0f744f8b6d9f841f797b89f0244ca5cfa68b21b6

Author: flamboh

Committer: flamboh

## Message

```
feat(netflow-db): add measure-weighted MAAD estimator

Add compute_weighted for (address, weight) pairs of either family, generic over MaadAddress like compute. Duplicate addresses sum their weights; non-finite or non-positive weights are rejected. Prefix validity and path pruning keep using distinct-address counts, while moments, D2 and D1 entropy use summed weights. Weighted results carry structure and dimensions only.

The unweighted path keeps its integer power table and prefix-count layout, and its JSON output is byte-identical to the previous release on 20 real windows.

Extend validate_maad.py with --weighted (ADDR,MEASURE CSV, oracle --csv --meas-col 1) and add a matching netflow-db maad --weighted flag; both combine with --ipv6.

```

## Parents

- [ca9b0274e7cae2c271b7495b949768eca9a303b0](https://git.cafe/flambo/atlantis/commit/ca9b0274e7cae2c271b7495b949768eca9a303b0?format=markdown)

[Source at this commit](https://git.cafe/flambo/atlantis/tree/50b352bae17d63c34733d95285f82c5c80bf79db?format=markdown)
