(self, x, y)
Add data points to the GP model and update cholesky.

        Parameters
        ----------
        x : ndarray
            A 2d array with the new states to add to the GP model. Each new
            state is on a new row.
        y : ndarray
            A 2d array with the new measurements to add to the GP model.
            Each measurements is on a new row.
Add data points to the GP model and update cholesky.
Add data points to the GP model and update cholesky .
def add_data_point(self, x, y):
        """Add data points to the GP model and update cholesky.

        Parameters
        ----------
        x : ndarray
            A 2d array with the new states to add to the GP model. Each new
            state is on a new row.
        y : ndarray
            A 2d array with the new measurements to add to the GP model.
            Each measurements is on a new row.

        """
        gp = self.gaussian_process
        gp.X = np.vstack((self.X, np.atleast_2d(x)))
        gp.Y = np.vstack((self.Y, np.atleast_2d(y)))

        if hasattr(gp, 'update_cache'):
            gp.update_cache()
        self.update_feed_dict()
def add_data_point ( self , x , y ) : gp = self . gaussian_process gp . X = np . vstack ( ( self . X , np . atleast_2d ( x ) ) ) gp . Y = np . vstack ( ( self . Y , np . atleast_2d ( y ) ) ) if hasattr ( gp , 'update_cache' ) : gp . update_cache ( ) self . update_feed_dict ( )