C++ Neural Networks and Fuzzy Logic
by Valluru B. Rao
MTBooks, IDG Books Worldwide, Inc.
ISBN: 1558515526 Pub Date: 06/01/95
Previous Table of Contents Next
Kohonen_layer:
•
float * weights Pointer to the weights matrix.
•
int winner_index Index value of the output, which is the winner.
•
float win_distance The Euclidean distance of the winner weight vector from the input vector.
•
int neighborhood_size The size of the neighborhood.
•
Kohonen_layer(int, int, int) Constructor for the layer: inputs, outputs, and the neighborhood
size.
•
~Kohonen_layer() Destructor.
•
virtual void calc_out() The function to calculate the outputs; for the Kohonen layer this models
lateral competition.
•
void randomize_weights() A function to initialize weights with random normal values.
•
void update_neigh_size(nt) This function updates the neighborhood size with a new value.
•
void update_weights(const float) This function updates the weights according to the training law
using the passed parameter, alpha.
Do'stlaringiz bilan baham: |