def __init__(self, mean, covariance, randomstate=None):
self.__mean = npu.immutablecopyof(npu.tondim1(mean))
self.__covariance = npu.immutablecopyof(npp.checkshapeissquare(npu.tondim2(covariance)))
self.__randomstate = npu.getrandomstate() if randomstate is None else randomstate
self.__impl = stats.multivariate_normal(self.__mean, self.__covariance)
评论列表
文章目录