/** * <summary> The removeDiscreteAttributes method takes an {@link Instance} as an input, and removes the discrete attributes from * given instance.</summary> * * <param name="instance">Instance to removes attributes from.</param> * <param name="size"> Size of the given instance.</param> */ protected void RemoveDiscreteAttributes(Instance.Instance instance, int size) { var k = 0; for (var i = 0; i < size; i++) { if (attributeDistributions[i].Count > 0) { instance.RemoveAttribute(k); } else { k++; } } }