de.htwdd.rosenkoenig.neuro.net
Class Cosine

java.lang.Object
  extended by de.htwdd.rosenkoenig.neuro.net.NeighbourhoodFunction
      extended by de.htwdd.rosenkoenig.neuro.net.Cosine

public class Cosine
extends NeighbourhoodFunction

Cosine shaped neighborhood function.


Field Summary
private static double piHalf
           
 
Fields inherited from class de.htwdd.rosenkoenig.neuro.net.NeighbourhoodFunction
radius
 
Constructor Summary
Cosine()
          Ctor, does nothing, so far.
 
Method Summary
 double computeActivation(double distance)
          The activation function.
 
Methods inherited from class de.htwdd.rosenkoenig.neuro.net.NeighbourhoodFunction
getRadius, setRadius
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

piHalf

private static final double piHalf
See Also:
Constant Field Values
Constructor Detail

Cosine

public Cosine()
Ctor, does nothing, so far.

Method Detail

computeActivation

public double computeActivation(double distance)
The activation function.

Specified by:
computeActivation in class NeighbourhoodFunction
Parameters:
distance - euclidic distance to the winning neuron
Returns:
activation for the given distance