コード例 #1
0
        //------------------------------------------------------------------------------------------------

        /// <summary>
        /// Adds a new mapping point (a new focal element, an element of the matrix) to which belief will be propagated.
        /// </summary>
        /// <param name="bp">The point to add.</param>
        /// <exception cref="InvalidBeliefModelException">Thrown if the given point is already contained
        /// in this vector.</exception>
        public void AddPoint(DiscreteMappingPoint bp)
        {
            if (this.Contains(bp))
            {
                throw new InvalidBeliefModelException("An Element to transform belief to appears twice in the evidential mapping model!");
            }
            _to.Add(bp);
        }
コード例 #2
0
        //------------------------------------------------------------------------------------------------

        /// <summary>
        /// Checks if the current vector contains the given point.
        /// </summary>
        /// <param name="bp">The point to test.</param>
        /// <returns>Returns true if the point is contained, false otherwise.</returns>
        public bool Contains(DiscreteMappingPoint bp)
        {
            return(_to.Contains(bp));
        }