Skip to content

Interface: CoherenceMetrics

@kortexya/reasoninglayer


@kortexya/reasoninglayer / CoherenceMetrics

Defined in: src/types/coherence.ts:340

Aggregate metrics of the claim graph.

boundaryFlux: CoherenceBoundaryFlux[]

Defined in: src/types/coherence.ts:356

Flux profile, one entry per boundary (claimCount - 1 entries).


claimCount: number

Defined in: src/types/coherence.ts:342

Number of claims analyzed.


linkDensity: number

Defined in: src/types/coherence.ts:346

Non-independent links divided by the pair count (0 when there are no pairs).


pairCount: number

Defined in: src/types/coherence.ts:344

Number of unordered pairs, n(n - 1) / 2.


perKindDensity: Record<string, number>

Defined in: src/types/coherence.ts:354

Link density per link kind (count / pair count).

The keys are link-kind names (data), passed through verbatim in their snake_case wire spelling (stricter_in_later, …).


optional weakestBoundary?: number

Defined in: src/types/coherence.ts:358

Boundary with the minimum crossing weight: the weakest logical joint of the text.