averageInheritedRatio
averageInheritedRatio(
builds,limit?):InheritedRatio|null
Defined in: packages/core/src/models/inherited-ratio.ts:23
The mean inherited ratio over the newest limit builds that hold snapshots, or null when none
does (no data is not a 0 % skip rate). A build with no snapshots has no ratio and is skipped.
Parameters
Section titled “Parameters”builds
Section titled “builds”readonly Pick<Build, "createdAt" | "snapshotCount" | "inheritedCount">[]
limit?
Section titled “limit?”number = RECENT_BUILDS_FOR_INHERITED_RATIO
Returns
Section titled “Returns”InheritedRatio | null