def test_rvs_generates_correctly(mean, df, size, type_): rt = mvt.rvs(mean=mean, cov=cov, df=df, size=size, type_=type_, random_state=8) rn = mvn.rvs(cov=cov, size=size) assert rt.shape == rn.shape
def random(self, n: int, seed: int = None): r = mvn.rvs(cov=self.sigma, size=n, random_state=seed) return norm.cdf(r)