(self, n_samples)
return p0[:, np.newaxis]
Returns N samples from the prior.

        Parameters
        ----------
        n_samples : int
            The number of samples that will be drawn.

        Returns
        -------
        (N, D) np.array
            The samples from the prior.
Returns N samples from the prior.
Returns N samples from the prior .
def sample_from_prior(self, n_samples):
        """
        Returns N samples from the prior.

        Parameters
        ----------
        n_samples : int
            The number of samples that will be drawn.

        Returns
        -------
        (N, D) np.array
            The samples from the prior.
        """

        p0 = self.rng.normal(loc=self.mean,
                             scale=self.sigma,
                             size=n_samples)
        return p0[:, np.newaxis]
def sample_from_prior ( self , n_samples ) : p0 = self . rng . normal ( loc = self . mean , scale = self . sigma , size = n_samples ) return p0 [ : , np . newaxis ]