Added TBinomialCoefficientCache method documentation
This commit is contained in:
parent
be0357befd
commit
21ef4c08f1
|
@ -37,7 +37,10 @@ type
|
||||||
public
|
public
|
||||||
constructor Create;
|
constructor Create;
|
||||||
destructor Destroy; override;
|
destructor Destroy; override;
|
||||||
|
// Returns N choose K, with N >= K >= 0.
|
||||||
function Get(const AN, AK: Cardinal): Cardinal;
|
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;
|
function GetCachedRowsCount: Cardinal;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue