コード例 #1
0
        public MBRModel <DataPoint> getRoot()
        {
            //getTree();
            //get root after add to tree
            RTree.Rectangle bounds     = tree.getBounds();
            DataPoint       upperRight = new DataPoint(bounds.get(0).GetValueOrDefault().max, bounds.get(1).GetValueOrDefault().max);
            DataPoint       lowerLeft  = new DataPoint(bounds.get(0).GetValueOrDefault().min, bounds.get(1).GetValueOrDefault().min);

            //retrun root
            return(new MBRModel <DataPoint>(lowerLeft, upperRight, tree.getNode(tree.getRootNodeId())));
        }
コード例 #2
0
ファイル: BBRController.cs プロジェクト: huy4vn/DATN
        public MBRModel <WeightVector> getRoot()
        {
            //getTree();
            //get root after add to tree
            RTree.Rectangle bounds     = tree.getBounds();
            WeightVector    upperRight = new WeightVector(bounds.get(0).GetValueOrDefault().max, bounds.get(1).GetValueOrDefault().max);
            WeightVector    lowerLeft  = new WeightVector(bounds.get(0).GetValueOrDefault().min, bounds.get(1).GetValueOrDefault().min);

            //retrun root
            return(new MBRModel <WeightVector>(lowerLeft, upperRight));
        }