The Scientific World Journal / 2016 / Article / Alg 1

Research Article

Development of Energy Efficient Clustering Protocol in Wireless Sensor Network Using Neuro-Fuzzy Approach

Algorithm 1

Perceptron learning rule.
 Input
 Initialize or 1.
Output Co = 0 or 1.
 While correct output
  Input .
  Po .
 If Not required output
  //Change and
   + Lr (O-Po)
   (O-Po)
 Co O.
 Weight change rule:
 If Po = 0, and O = 1, // is not large enough
  Reduce threshold and increase ’s.
 if , O = 0, // output is too large,
    Increase threshold and reduce
 If Po = 1, O = 1, or Po = 0, O = 0,
  no change in weights or thresholds.
Where Co—correct output, Po—Perceptron output, Lr is positive learning rate