simple_montecarlo

Type-safe Monte Carlo simulation framework for Eiffel

MIT License Eiffel 25.02 Design by Contract

Overview

simple_montecarlo is a production-ready Monte Carlo simulation framework for Eiffel that makes stochastic experiments accessible to engineers without deep statistical expertise.

It offers type-safe measurements, flexible trial logic, and comprehensive statistics including mean, standard deviation, and confidence intervals.

Part of the Simple Eiffel ecosystem.

Use Cases

Features

Status

v1.0.0 - Production Ready

Quick Example


local
    l_exp: MONTE_CARLO_EXPERIMENT
    l_stats: SIMULATION_STATISTICS
do
    create l_exp.make (1000)
    l_exp.set_trial_logic (agent my_trial_logic)
    l_exp.run_simulation
    l_stats := l_exp.statistics

    print ("Mean: " + l_stats.mean.out + "%N")
    print ("95% CI: [" + l_stats.ci_95.first.out + ", "
           + l_stats.ci_95.second.out + "]%N")
end
            

Getting Started

Quick API Reference for immediate examples

User Guide for comprehensive instructions

API Reference for complete documentation