Click or drag to resize
Accord.NET (logo)

DecisionBranchNodeCollection Class

Collection of decision nodes. A decision branch specifies the index of an attribute whose current value should be compared against its children nodes. The type of the comparison is specified in each child node.
Inheritance Hierarchy
SystemObject
  System.Collections.ObjectModelCollectionDecisionNode
    Accord.MachineLearning.DecisionTreesDecisionBranchNodeCollection

Namespace:  Accord.MachineLearning.DecisionTrees
Assembly:  Accord.MachineLearning (in Accord.MachineLearning.dll) Version: 3.8.0
Syntax
[SerializableAttribute]
public class DecisionBranchNodeCollection : Collection<DecisionNode>
Request Example View Source

The DecisionBranchNodeCollection type exposes the following members.

Constructors
  NameDescription
Public methodDecisionBranchNodeCollection Obsolete.
Initializes a new instance of the DecisionBranchNodeCollection class.
Public methodDecisionBranchNodeCollection(DecisionNode)
Initializes a new instance of the DecisionBranchNodeCollection class.
Public methodDecisionBranchNodeCollection(Int32, DecisionNode) Obsolete.
Initializes a new instance of the DecisionBranchNodeCollection class.
Top
Properties
  NameDescription
Public propertyAttribute
Gets the attribute that is being used in this stage of the decision process, given by the current AttributeIndex
Public propertyAttributeIndex
Gets or sets the index of the attribute to be used in this stage of the decision process.
Public propertyCount
Gets the number of elements actually contained in the CollectionT.
(Inherited from CollectionDecisionNode.)
Public propertyItem
Gets or sets the element at the specified index.
(Inherited from CollectionDecisionNode.)
Protected propertyItems
Gets a IListT wrapper around the CollectionT.
(Inherited from CollectionDecisionNode.)
Public propertyOwner
Gets or sets the decision node that contains this collection.
Top
Methods
  NameDescription
Public methodAdd
Adds an object to the end of the CollectionT.
(Inherited from CollectionDecisionNode.)
Public methodAddRange
Adds the elements of the specified collection to the end of the collection.
Public methodClear
Removes all elements from the CollectionT.
(Inherited from CollectionDecisionNode.)
Protected methodClearItems
Removes all elements from the CollectionT.
(Inherited from CollectionDecisionNode.)
Public methodContains
Determines whether an element is in the CollectionT.
(Inherited from CollectionDecisionNode.)
Public methodCopyTo
Copies the entire CollectionT to a compatible one-dimensional Array, starting at the specified index of the target array.
(Inherited from CollectionDecisionNode.)
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetEnumerator
Returns an enumerator that iterates through the CollectionT.
(Inherited from CollectionDecisionNode.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodIndexOf
Searches for the specified object and returns the zero-based index of the first occurrence within the entire CollectionT.
(Inherited from CollectionDecisionNode.)
Public methodInsert
Inserts an element into the CollectionT at the specified index.
(Inherited from CollectionDecisionNode.)
Protected methodInsertItem
Inserts an element into the CollectionT at the specified index.
(Inherited from CollectionDecisionNode.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodRemove
Removes the first occurrence of a specific object from the CollectionT.
(Inherited from CollectionDecisionNode.)
Public methodRemoveAt
Removes the element at the specified index of the CollectionT.
(Inherited from CollectionDecisionNode.)
Protected methodRemoveItem
Removes the element at the specified index of the CollectionT.
(Inherited from CollectionDecisionNode.)
Protected methodSetItem
Replaces the element at the specified index.
(Inherited from CollectionDecisionNode.)
Public methodToString
Returns a String that represents this instance.
(Overrides ObjectToString.)
Top
Extension Methods
  NameDescription
Public Extension MethodHasMethod
Checks whether an object implements a method with the given name.
(Defined by ExtensionMethods.)
Public Extension MethodIsEqual
Compares two objects for equality, performing an elementwise comparison if the elements are vectors or matrices.
(Defined by Matrix.)
Public Extension MethodTo(Type)Overloaded.
Converts an object into another type, irrespective of whether the conversion can be done at compile time or not. This can be used to convert generic types to numeric types during runtime.
(Defined by ExtensionMethods.)
Public Extension MethodToTOverloaded.
Converts an object into another type, irrespective of whether the conversion can be done at compile time or not. This can be used to convert generic types to numeric types during runtime.
(Defined by ExtensionMethods.)
Top
See Also