@Throws(Exception::class) fun resetDistribution(data: Instances) { val insts = Instances(data, data.numInstances()) for (i in 0 until data.numInstances()) { if (whichSubset(data.instance(i)) > -1) { insts.add(data.instance(i)) } } val newD = Distribution(insts, this) newD.addInstWithUnknown(data, m_attIndex) m_distribution = newD }
Sets distribution associated with model .