コード例 #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());
        }
コード例 #2
0
 public IMaxTreeNode <float> GetNode(int element_index)
 {
     return(inner_max_tree.GetNode(element_index));
 }