TableSource#
TableSource loads an .ltk actuarial table file from disk and
exposes the raw decrement arrays and metadata for use by LifeTable,
DisabilityTable, and ExitTable constructors.
Table files are located in the directory configured by
tables_path (default: absolute path to actuarial_tables/
in the working directory at the time of the first Config() call). A disk-read
cache keyed on file path and modification time avoids redundant I/O for repeated
access to the same table within a session.
Note
TableSource is primarily an internal component. Users normally access table
data through LifeTable and its siblings rather than constructing
a TableSource directly.
See also
Using Actuarial Tables — Loading and inspecting tables.
Bundled Actuarial Tables — Tables bundled with Lactuca.