def __init__(self, weights, means, covs, lims):
    self.weights = numpy.array(weights)
    self.means = numpy.array(means)
    self.covs = numpy.array(covs)
    self.lims = numpy.array(lims)
    [nc] = self.weights.shape
    assert (self.means.shape[0] == nc)
    [nc, nf] = self.means.shape
    assert (self.covs.shape[0] == nc)
    assert (self.covs.shape[1] == nf)
    assert (self.covs.shape[2] == nf)
    [nc, nf, nf] = self.covs.shape
    assert (self.lims.shape[0] == nf)
    assert (self.lims.shape[1] == 2)
def __init__(self, weights, means, covs, lims):
    self.weights = numpy.array(weights)
    self.means = numpy.array(means)
    self.covs = numpy.array(covs)
    self.lims = numpy.array(lims)
    [nc] = self.weights.shape
    assert (self.means.shape[0] == nc)
    [nc, nf] = self.means.shape
    assert (self.covs.shape[0] == nc)
    assert (self.covs.shape[1] == nf)
    assert (self.covs.shape[2] == nf)
    [nc, nf, nf] = self.covs.shape
    assert (self.lims.shape[0] == nf)
    assert (self.lims.shape[1] == 2)