benf 2.6.1

Benford's Law analysis CLI - convenience wrapper for lawkit benf
benf-2.6.1 is not a library.
Visit the last successful build: benf-1.0.0

benf

Crates.io License: MIT

Benford's Law analysis CLI tool. Detect anomalies in numerical data for fraud detection and data quality assessment.

Note: This is a convenience wrapper for lawkit benf. For additional statistical laws (Pareto, Zipf, Normal, Poisson) and advanced features, see lawkit.

Installation

cargo install benf

Usage

# Analyze a file
benf data.csv

# From stdin
cat numbers.txt | benf -

# Output formats
benf data.csv --format json
benf data.csv --format csv

Options

-f, --format <FORMAT>   Output: text, csv, json, yaml, toml, xml
-q, --quiet             Minimal output
-v, --verbose           Detailed output
--filter <RANGE>        Filter numbers (e.g., >=100, <1000)
--no-color              Disable colors

Exit Codes

Code Meaning
0 LOW/MEDIUM risk - data conforms to Benford's Law
10 HIGH risk (p ≤ 0.05)
11 CRITICAL risk (p ≤ 0.01)

See Also

  • lawkit - Full statistical law analysis toolkit
  • pareto - Pareto principle (80/20 rule) analysis

License

MIT