(self, num_samples)
return rand * np.diff(limits, axis=1).T + self.offset
Sample uniformly at random from the continuous domain.

        Parameters
        ----------
        num_samples : int

        Returns
        -------
        points : ndarray
            Random points on the continuous rectangle.
Sample uniformly at random from the continuous domain.
Sample uniformly at random from the continuous domain .
def sample_continuous(self, num_samples):
        """Sample uniformly at random from the continuous domain.

        Parameters
        ----------
        num_samples : int

        Returns
        -------
        points : ndarray
            Random points on the continuous rectangle.

        """
        limits = self.limits
        rand = np.random.uniform(0, 1, size=(num_samples, self.ndim))
        return rand * np.diff(limits, axis=1).T + self.offset
def sample_continuous ( self , num_samples ) : limits = self . limits rand = np . random . uniform ( 0 , 1 , size = ( num_samples , self . ndim ) ) return rand * np . diff ( limits , axis = 1 ) . T + self . offset