public IEnumerable <AttributeGroupsOfObjects> GroupElementsBy(ICollection <DataObject> objects,
                                                                      IEnumerable <AttributeDescription> attributes, double parameter)
        {
            var minElementsInGroup = Convert.ToInt32(parameter);

            return(GroupByHelper.Group(objects, attributes, minElementsInGroup));
        }
Ejemplo n.º 2
0
        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));
        }