(self)
return mu0, Phi, m, n0
Return dynamics prior for initial time step.
Return dynamics prior for initial time step.
Return dynamics prior for initial time step .
def initial_state(self):
        """ Return dynamics prior for initial time step. """
        # Compute mean and covariance.
        mu0 = np.mean(self.X[:, 0, :], axis=0)
        Phi = np.diag(np.var(self.X[:, 0, :], axis=0))

        # Factor in multiplier.
        n0 = self.X.shape[2] * self._strength
        m = self.X.shape[2] * self._strength

        # Multiply Phi by m (since it was normalized before).
        Phi = Phi * m
        return mu0, Phi, m, n0
def initial_state ( self ) : # Compute mean and covariance. mu0 = np . mean ( self . X [ : , 0 , : ] , axis = 0 ) Phi = np . diag ( np . var ( self . X [ : , 0 , : ] , axis = 0 ) ) # Factor in multiplier. n0 = self . X . shape [ 2 ] * self . _strength m = self . X . shape [ 2 ] * self . _strength # Multiply Phi by m (since it was normalized before). Phi = Phi * m return mu0 , Phi , m , n0