Added TBinomialCoefficientCache method documentation

This commit is contained in:
Stefan Müller 2024-11-09 23:11:05 +01:00
parent be0357befd
commit 21ef4c08f1
1 changed files with 3 additions and 0 deletions

View File

@ -37,7 +37,10 @@ type
public
constructor Create;
destructor Destroy; override;
// Returns N choose K, with N >= K >= 0.
function Get(const AN, AK: Cardinal): Cardinal;
// Returns the number of cached rows C = N + 1, where N is the highest from previously queried "N choose K". The
// actual number of cached binomial coefficient values is C * (C + 1) / 2.
function GetCachedRowsCount: Cardinal;
end;