def __init__(self, errorMeasureClass, errorMeasureInitializationParameters=None, precision=-1):

        if errorMeasureInitializationParameters is None:
            errorMeasureInitializationParameters = {}

        if not isinstance(errorMeasureClass, (type, types.ClassType)):
            raise TypeError("errorMeasureClass has to be of type pycast.errors.BaseErrorMeasure or of an inherited class.")
        if not issubclass(errorMeasureClass, BaseErrorMeasure):
            raise TypeError("errorMeasureClass has to be of type pycast.errors.BaseErrorMeasure or of an inherited class.")
        if not -7 <= precision <= 0:
            raise ValueError("precision has to be in [-7,0].")

        super(BaseOptimizationMethod, self).__init__()

        self._precison   = int(precision)
        self._errorClass = errorMeasureClass
        self._errorMeasureKWArgs = errorMeasureInitializationParameters
Returns algorithm to use for verifying messages.
dataset/ETHPy150Open T-002/pycast/pycast/optimization/baseoptimizationmethod.py/BaseOptimizationMethod.__init__--crossover with--dataset/ETHPy150Open mimecuvalo/helloworld/packages/magicsig/__init__.py/MagicEnvelopeProtocol.GetVerifierAlg