simple_statistics

Type-safe statistical analysis library for Eiffel

MIT License Eiffel 25.02 Design by Contract

Overview

simple_statistics is a production-ready statistical analysis library for Eiffel. It provides type-safe, verified implementations of descriptive statistics, correlation analysis, linear regression, and hypothesis testing.

Every feature is specified with Design by Contract (require/ensure/invariant) and verified through 43 comprehensive tests including adversarial and stress testing.

Part of the Simple Eiffel ecosystem.

Features

Status

v1.0.0 - Production Ready

Quality Metrics:
  • 43 tests passing (100% pass rate)
  • 30 baseline tests + 13 adversarial tests
  • Design by Contract throughout
  • Void-safe implementation
  • SCOOP compatible
  • Zero compilation warnings

Quick Start

See Quick API Reference for immediate examples.

Basic Example

create stats.make
data := {ARRAY [REAL_64]} << 1.0, 2.0, 3.0, 4.0, 5.0 >>

-- Compute statistics
avg := stats.mean (data)
std := stats.std_dev (data)
med := stats.median (data)

For comprehensive documentation, start with the User Guide.

Installation

Add to your ECF configuration file:

<library name="simple_statistics" location="$SIMPLE_EIFFEL/simple_statistics/simple_statistics.ecf"/>

Then create and use in your Eiffel code:

create stats.make
result := stats.mean (your_data)

Documentation

Support & Community