Struct vrp_core::algorithms::gsom::Node[][src]

pub struct Node<I: Input, S: Storage<Item = I>> {
    pub weights: Vec<f64>,
    pub error: f64,
    pub total_hits: usize,
    pub last_hits: VecDeque<usize>,
    pub coordinate: Coordinate,
    pub topology: Topology<I, S>,
    pub storage: S,
    pub creation_time: usize,
    // some fields omitted
}
Expand description

Represents a node in network.

Fields

weights: Vec<f64>

A weight vector.

error: f64

An error of the neuron.

total_hits: usize

Tracks amount of times node is selected as BU.

last_hits: VecDeque<usize>

Tracks last hits,

coordinate: Coordinate

A coordinate in network.

topology: Topology<I, S>

A reference to topology.

storage: S

Remembers passed data.

creation_time: usize

A node creating time.

Implementations

Creates a new instance of Node.

Adjusts the weights of the node.

Returns distance to the given weights.

Updates hit statistics.

Checks whether time is considered old.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The alignment of pointer.

The type for initializers.

Initializes a with the given initializer. Read more

Dereferences the given pointer. Read more

Mutably dereferences the given pointer. Read more

Drops the object pointed to by the given pointer. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.