package smtml
Install
dune-project
Dependency
Authors
-
JJoão Pereira <joaomhmpereira@tecnico.ulisboa.pt>
-
FFilipe Marques <filipe.s.marques@tecnico.ulisboa.pt>
-
HHichem Rami Ait El Hara <hra@ocamlpro.com>
-
Rredianthus <redopam@pm.me>
-
AArthur Carcano <arthur.carcano@ocamlpro.com>
-
PPierre Chambart <pierre.chambart@ocamlpro.com>
-
JJosé Fragoso Santos <jose.fragoso@tecnico.ulisboa.pt>
Maintainers
Sources
md5=dccec4e664735d96f7d5e867f8c0841f
sha512=4e1586451c0e61dcae6bd46bb8fe899430b383c776dbf214cffcd6802449ee522f4658e2990ac1a1ad6f8e89f72a8d83ba0a40a7d33b2faaa9f8ae0c7a1d0c67
doc/smtml/Smtml/Statistics/index.html
Module Smtml.StatisticsSource
Statistics Module. This module defines types and utilities for managing and manipulating solver statistics, including merging and pretty-printing.
Entry Types
The type entry represents a single statistic entry, which can be either an integer or a floating-point number.
Statistics Map
Map is a module for managing statistics as a map from string keys to statistic entries.
The type t represents a collection of statistics as a map from string keys to statistic entries.
Merging and Aggregation
sum_entries e1 e2 sums two statistic entries e1 and e2. If both entries are integers, the result is an integer. If either entry is a float, the result is a float.
merge t1 t2 merges two statistics maps t1 and t2. If a key exists in both maps, the corresponding entries are summed using sum_entries.
Pretty Printing
pp_entry fmt entry pretty-prints a single statistic entry entry using the formatter fmt.
to_json stats converts the statistics map stats into a JSON representation.