Encapsulates a node in a Problem vector, with an index and a value (for more efficient representation of sparse data.
Node
01 Syntax
02 Methods
| Name | Overloads | Summary |
|---|---|---|
| .ctor | 2 | Default Constructor. |
| ToString | 1 | String representation of this Node as {index}:{value}. |
| Equals | 1 | Compares this node with another object. |
| GetHashCode | 1 | Gets the hash code of this node, which is combined by the hash code of both the Node.index and the Node.value. |
| CompareTo | 1 | Compares this node with another. |
| Copy | 1 | Create a copy of a Node data collection. |
03 Properties
04 Members
Default Constructor.
Int32, Double)Constructor.
| Name | Type | Description |
|---|---|---|
index | Int32 | The index of the value. |
value | Double | The value to store. |
String representation of this Node as {index}:{value}.
{index}:{value}
Object)Compares this node with another object.
| Name | Type | Description |
|---|---|---|
obj | Object | The object that will be compared with this node. |
True when the obj is a Node object which has the same Node.index and the same truncated Node.value, otherwise False.
Gets the hash code of this node, which is combined by the hash code of both the Node.index and the Node.value.
An Int32 hash code value.
Compares this node with another.
| Name | Type | Description |
|---|---|---|
other | Node | The node to compare to |
A positive number if this node is greater, a negative number if it is less than, or 0 if equal
IEnumerable(Of Node))Create a copy of a Node data collection.
| Name | Type | Description |
|---|---|---|
dataset | IEnumerable(Of Node) | The source node collection. |
A lazy evaluated sequence of the new Node objects which have the same index and value as the source collection.
Index of this Node.
Value at Index.