private void _featureManager_FeatureAdded(object sender, FeatureNumerical e) { foreach (var i in _items) { i.AddValue(e.Name); } }
public ItemNumerical CreateItem() { ItemNumerical item = ItemNumerical.Create(); var names = _featureManager.GetFeatureNames(); foreach (var name in names) { FeatureNumerical feature = _featureManager.Get(name); item.AddValue(name); } return(item); }
public ItemNumericalSet Clone() { FeatureNumericalManager fm = new FeatureNumericalManager(); List <string> names = _featureManager.GetFeatureNames(); foreach (string n in names) { FeatureNumerical f = _featureManager.Get(n); FeatureNumerical nf = new FeatureNumerical(f.Name); fm.Add(nf); } ItemNumericalSet res = new ItemNumericalSet(fm); return(res); }