Exemple #1
0
        public int[] GetRealElementsIndexesWithMaxAlfaMaxSize(int element_index, int max_real_size, EdgeValueType max_alpha)
        {
            IMaxTreeNode <EdgeValueType> node = min_tree.GetNode(element_index);
            EdgeValueType min_alpha           = this.algebra.Subtract(this.max_edge_value, max_alpha);

            while ((node.Parent != null) && (this.algebra.Compare(min_alpha, node.Parent.Value) == -1) && (max_real_size > node.Parent.CulmativeRealSize))
            {
                node = node.Parent;
            }
            return(node.GetElementIndexArrayCulmativeReal());
        }
Exemple #2
0
        public int[] GetRealElementsIndexesOfElementLevelAndAbove(
            int element_index,
            ElementType level)
        {
            IMaxTreeNode <ElementType> node = this.d_elements_to_nodes[element_index];

            while ((node.Parent != null) && (this.element_value_comparer.Compare(level, node.Parent.Value) == -1))
            {
                node = node.Parent;
            }
            return(node.GetElementIndexArrayCulmativeReal());
        }