The Complete SPRLIB & ANNLIB

normalize_ptron(1)

- normalize the perceptron weights (LOCAL)

SYNOPSIS

int normalize_ptron (ptron)

ARGUMENTS

PTRON *ptron A pointer to the perceptron of which the weights have to be normalized.

RETURNS

If no error occured the function returns FALSE and the weights of ptron are normalized. In case of an error the function returns TRUE.

FUNCTION

This function normalizes the weights of a perceptron in such a way that the square of the single weights sums to 1.0. That is the weights are normalized according to Wi = Wi/(W*W) where Wi is an individual weight and W the total weight vector.

This document was generated using api2html on Thu Mar 5 09:00:00 MET DST 1998