public IEnumerable <AttributeGroupsOfObjects> GroupElementsBy(ICollection <DataObject> objects, IEnumerable <AttributeDescription> attributes, double parameter) { var minElementsInGroup = Convert.ToInt32(parameter); return(GroupByHelper.Group(objects, attributes, minElementsInGroup)); }
public IEnumerable <AttributeGroupsOfObjects> GroupElementsBy(ICollection <DataObject> objects, IEnumerable <AttributeDescription> attributes, double parameter) { decimal value = (decimal)(objects.Count() * parameter / 100d); var numberOfElements = Convert.ToInt32(value); return(GroupByHelper.Group(objects, attributes, numberOfElements)); }