def crit(self, prob, n):
        prob = np.asarray(prob)
        alpha = self.alpha
        critv = self._critvals(n)

        #vectorized
        cond_ilow = (prob > alpha[0])
        cond_ihigh = (prob < alpha[-1])
        cond_interior = np.logical_or(cond_ilow, cond_ihigh)

        #scalar
        if prob.size == 1:
            if cond_interior:
                return interp1d(alpha, critv)(prob)
            else:
                return np.nan

        #vectorized
        quantile = np.nan * np.ones(prob.shape) #nans for outside
        quantile[cond_interior] = interp1d(alpha, critv)(prob[cond_interior])
        return quantile
Returns the type of the Chromecast device.
dataset/ETHPy150Open statsmodels/statsmodels/statsmodels/stats/tabledist.py/TableDist.crit--crossover with--dataset/ETHPy150Open balloob/pychromecast/pychromecast/__init__.py/Chromecast.cast_type