示例#1
0
        private static MatrixRow ClassifyObject(
            DataObject testObject,
            long[] LOWs,
            long[] HIGHs,
            long[] both,
            AttributeGroupsOfObjectsCover[] listOfGroupsOfDataObjects)
        {
            var highs = RowColumnObjectHelper.Get(HIGHs, testObject, listOfGroupsOfDataObjects);
            var lows  = RowColumnObjectHelper.Get(LOWs, testObject, listOfGroupsOfDataObjects);
            var boths = RowColumnObjectHelper.Get(both, testObject, listOfGroupsOfDataObjects);


            return(new MatrixRow(testObject.Id, testObject.Class.Value, highs.Concat(boths), lows.Concat(boths)));
        }
        private static MatrixRow ClassifyObject(
            DataObject testObject,
            AttributeGroupsOfObjectsCover[] Lows,
            AttributeGroupsOfObjectsCover[] Highs,
            AttributeGroupsOfObjectsCover[] both)
        {
            var higHs    = RowColumnObjectHelper.Find(Highs, testObject, Mode.HIGH, both, true).ToArray();
            var bothRows = from attribute in higHs
                           join id in both on attribute.Id equals id.Attribute.Attribute.Id
                           select attribute;
            var lows = bothRows.Concat(RowColumnObjectHelper.Find(Lows, testObject, Mode.LOW, both)).ToArray();

            return(new MatrixRow(testObject.Id, testObject.Class.Value, higHs, lows));
        }