def dist(self, src, tar):
if src == tar:<EOL><INDENT>return <NUM_LIT:0.0><EOL><DEDENT>src_comp = self._rle.encode(src)<EOL>tar_comp = self._rle.encode(tar)<EOL>concat_comp = self._rle.encode(src + tar)<EOL>concat_comp2 = self._rle.encode(tar + src)<EOL>return (<EOL>min(len(concat_comp), len(concat_comp2))<EOL>- min(len(src_comp), len(tar_comp))<EOL>) / max(len(src_comp), len(tar_comp))<EOL>
Return the NCD between two strings using RLE.

        Parameters
        ----------
        src : str
            Source string for comparison
        tar : str
            Target string for comparison

        Returns
        -------
        float
            Compression distance

        Examples
        --------
        >>> cmp = NCDrle()
        >>> cmp.dist('cat', 'hat')
        1.0
        >>> cmp.dist('Niall', 'Neil')
        1.0
        >>> cmp.dist('aluminum', 'Catalan')
        1.0
        >>> cmp.dist('ATCG', 'TAGC')
        1.0