def _compute_style_of_faulting_term(self, rup, C):
        """
        Computes the coefficient to scale for reverse or strike-slip events
        Fault type (Strike-slip, Normal, Thrust/reverse) is
        derived from rake angle.
        Rakes angles within 30 of horizontal are strike-slip,
        angles from 30 to 150 are reverse, and angles from
        -30 to -150 are normal. See paragraph 'Predictor Variables'
        pag 103.
        Note that 'Unspecified' case is used to refer to all other rake
        angles.
        """
        if np.abs(rup.rake) <= 30.0 or (180.0 - np.abs(rup.rake)) <= 30.0:
            # strike-slip
            return C['B1ss']
        elif rup.rake > 30.0 and rup.rake < 150.0:
            # reverse
            return C['B1rv']
        else:
            # unspecified (also includes Normal faulting!)
            return C['B1all']