Class Instability

Instability metric (I)

Measures the ratio of efferent coupling (outgoing dependencies) to total coupling. Formula: I = Ce / (Ca + Ce) Where:

  • Ce = efferent coupling (outgoing dependencies)
  • Ca = afferent coupling (incoming dependencies)

Implements

Constructors

Properties

Methods

Constructors

Properties

name: string = 'Instability'
description: string = 'Measures the instability of a file based on its dependencies (0 = stable, 1 = unstable)'

Methods