def __init__(self, core, mu, c, weights):
"""Initializes the concept."""
if (not isinstance(core, cor.Core)) or (not cor.check(core._cuboids, core._domains)):
raise Exception("Invalid core")
if mu > 1.0 or mu <= 0.0:
raise Exception("Invalid mu")
if c <= 0.0:
raise Exception("Invalid c")
if (not isinstance(weights, wghts.Weights)) or (not wghts.check(weights._domain_weights, weights._dimension_weights)):
raise Exception("Invalid weights")
self._core = core
self._mu = mu
self._c = c
self._weights = weights
评论列表
文章目录