'Calculates a Bloom filter with the specified parameters.
Initalizes with a string or list/set/tuple of strings. No output.
Reference material: http://bitworking.org/news/380/bloom-filter-resources'

def create_hash(self, initial, capacity, error):

    self.hash = 0L
    (self.hashbits, self.num_hashes) = self._optimal_size(capacity, error)
    if len(initial):
        if (type(initial) == str):
            self.add(initial)
        else:
            for t in initial:
                self.add(t)
