Skip to main content

Function: calculateCQI()

function calculateCQI(
metrics,
thresholds,
params,
includeBreakdown): object;

Defined in: packages/uimatch-core/src/core/quality-gate.ts:240

Calculate Composite Quality Indicator (CQI) score with optional breakdown

Parameters

metrics

Comparison metrics

areaGap

number

colorDeltaEAvg

number

hasHighSeverity

boolean

pixelDiffRatio

number

pixelDiffRatioContent?

number

thresholds

QualityGateThresholds

Quality gate thresholds

params

CQIParams = {}

CQI calculation parameters

includeBreakdown

boolean = false

Whether to include detailed breakdown (default: false)

Returns

object

CQI score (0-100, higher is better) and optional breakdown

breakdown?

optional breakdown: CQIBreakdown;

cqi

cqi: number;