ratio property

double get ratio

Return a measure of the sequences' similarity, that is 1.0 if the sequences are identical, and 0.0 if the sequences have nothing in common.

Implementation

double get ratio => _calculateRatio(
      matches.map((each) => each.length).sum,
      _source.length + _target.length,
    );