How to use the simdkalman.primitives.update function in simdkalman

To help you get started, we’ve selected a few simdkalman examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github oseiskar / simdkalman / tests / testsuite.py View on Github external
def test_update(self):
        prior_mean = np.array([[1],[2],[3]])
        prior_covariance = np.eye(3)*2

        observation_model = np.ones((2,3))
        observation_noise = np.eye(2)*0.1

        measurement = np.array([[3],[4]])

        m, P = primitives.update(prior_mean, prior_covariance, observation_model, observation_noise, measurement)

        self.assertSequenceEqual(m.shape, (3,1))
        self.assertSequenceEqual(P.shape, (3,3))