ArchUnitTS - v2.2.0
    Preparing search index...

    Class NormalizedDistance

    Normalized Distance metric (ND)

    A modified version of Distance from Main Sequence that accounts for file size. Files with more code are expected to be more complex and potentially have more responsibilities, so they should be closer to the main sequence. Formula: ND = D * (1 - S/Smax) Where:

    • D = Distance from Main Sequence
    • S = Size of file (measured in LOC or declarations)
    • Smax = Maximum size for normalization

    Implements

    Index

    Constructors

    Properties

    Methods

    Constructors

    Properties

    name: string = 'NormalizedDistance'
    description: string = 'A size-adjusted distance metric that accounts for file complexity (0 = ideal balance, 1 = furthest from ideal)'

    Methods