ArchUnitTS - v2.2.0
    Preparing search index...

    Class LCOM5

    LCOM5 (Henderson-Sellers, 1996)

    Formula: LCOM5 = (a - μΣ(mA)) / (a - μ)

    Where:

    • a is the number of attributes (fields)
    • μ is the number of methods
    • mA is the number of methods accessing attribute A
    • Σ(mA) is the sum over all attributes

    Returns a value between 0 and 1:

    • 0: perfect cohesion
    • 1: lack of cohesion

    Implements

    Index

    Constructors

    Properties

    Methods

    Constructors

    Properties

    name: string = 'LCOM5'
    description: string = 'Lack of Cohesion of Methods (Henderson-Sellers, 1996) - Normalized attribute access measure'

    Methods