'Set initialization of regime probabilities to use known values'

def initialize_known(self, probabilities, tol=1e-08):

    self._initialization = 'known'
    probabilities = np.array(probabilities, ndmin=1)
    if (not (probabilities.shape == (self.k_regimes,))):
        raise ValueError('Initial    probabilities    must    be    a    vector    of    shape    (k_regimes,).')
    if (not (np.abs((np.sum(probabilities) - 1)) < tol)):
        raise ValueError('Initial    probabilities    vector    must    sum    to    one.')
    self._initial_probabilities = probabilities
