def update(self, b):
hv = self.hashfunc(b)<EOL>a, b = self.permutations<EOL>phv = np.bitwise_and((a * hv + b) % _mersenne_prime, np.uint64(_max_hash))<EOL>self.hashvalues = np.minimum(phv, self.hashvalues)<EOL>
Update this MinHash with a new value.
        The value will be hashed using the hash function specified by
        the `hashfunc` argument in the constructor.

        Args:
            b: The value to be hashed using the hash function specified.

        Example:
            To update with a new string value (using the default SHA1 hash
            function, which requires bytes as input):

            .. code-block:: python

                minhash = Minhash()
                minhash.update("new value".encode('utf-8'))

            We can also use a different hash function, for example, `pyfarmhash`:

            .. code-block:: python

                import farmhash
                def _hash_32(b):
                    return farmhash.hash32(b)
                minhash = MinHash(hashfunc=_hash_32)
                minhash.update("new value")