Skip to content

API Reference ​

The API section documents every module, type and procedure, generated from the source comments by formal:

bash
cd docs
npm run docs:api      # formal generate --mirror-sources --diagrams --project ford.md --output api

npm run docs:dev and npm run docs:build regenerate it first.

Public entry point ​

use foresight exports:

EntityModulePurpose
figure_objectforesight_figurefigure with the gnuplot-like API — see Fortran Library
script_objectforesight_scriptgnuplot subset interpreter — see Scripts from Fortran
fit, fit_report, fit_result, fit_settings, model_functionforesight_fitgnuplot's fit for Fortran models — see Fitting a model
stats, stats_report, stats_result, stats_columnforesight_statsgnuplot's stats of arrays — see Statistics
civil_time, strftime, strptimeforesight_timegnuplot's time conversions — see Times
rename_file, sleep_msforesight_sysatomic rename (rename_file(old, new, [iostat]): without iostat a failure stops) and sub-second sleep (libc)
file_fingerprintforesight_fingerprinta cheap fingerprint of a file's content, to tell that it changed (the watch mode)
THEMESforesight_themethe names of the output themes, blank separated: classic vfd lcd washi night paper
I4P, I8P, R4P, R8PPENFkind parameters

The other modules are internal: their interfaces may change without notice.

Released under the GPL v3, BSD 2-Clause, BSD 3-Clause or MIT License.