edu.udo.cs.yale.tools.math.som
Class RitterAdaption
java.lang.Object
edu.udo.cs.yale.tools.math.som.RitterAdaption
- All Implemented Interfaces:
- AdaptionFunction
public class RitterAdaption
- extends java.lang.Object
- implements AdaptionFunction
The RitterAdaption provides an implementation of the AdaptionFunction interface for calculation the adaption of a
node to an input stimulus.
- Version:
- $Id$
- Author:
- Sebastian Land
Method Summary |
double[] |
adapt(double[] stimulus,
double[] nodeValue,
double distanceFromImpact,
int time,
int maxtime)
This method returns the new value of a node, after it had adopted to a stimulus.
|
double |
getAdaptionRadius(double[] stimulus,
int time,
int maxtime)
This method returns the maximum adaption radius, given the input stimulus, the current
trainingsphase (time) and the total number of trainingsphases (timemax).
|
private double |
getAdaptionRadius(int time,
int maxtime)
|
void |
setAdaptionRadiusEnd(double end)
|
void |
setAdaptionRadiusStart(double start)
|
void |
setLearnRateEnd(double end)
|
void |
setLearnRateStart(double start)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
learnRateStart
private double learnRateStart
learnRateEnd
private double learnRateEnd
adaptionRadiusStart
private double adaptionRadiusStart
adaptionRadiusEnd
private double adaptionRadiusEnd
lastTime
private int lastTime
learnRateCurrent
private double learnRateCurrent
adaptionRadiusCurrent
private double adaptionRadiusCurrent
RitterAdaption
public RitterAdaption()
adapt
public double[] adapt(double[] stimulus,
double[] nodeValue,
double distanceFromImpact,
int time,
int maxtime)
- Description copied from interface:
AdaptionFunction
- This method returns the new value of a node, after it had adopted to a stimulus.
The stimulus and the old node value are given. The distance from the impact of the
stimulus may influence the strength of the adoption to the stimulus, as may the
current trainingsphase (time) and the total number of trainingsphases (timemax)
- Specified by:
adapt
in interface AdaptionFunction
getAdaptionRadius
public double getAdaptionRadius(double[] stimulus,
int time,
int maxtime)
- Description copied from interface:
AdaptionFunction
- This method returns the maximum adaption radius, given the input stimulus, the current
trainingsphase (time) and the total number of trainingsphases (timemax). It may be used
for finding all nodes effected by the stimulus.
- Specified by:
getAdaptionRadius
in interface AdaptionFunction
getAdaptionRadius
private double getAdaptionRadius(int time,
int maxtime)
setAdaptionRadiusStart
public void setAdaptionRadiusStart(double start)
setAdaptionRadiusEnd
public void setAdaptionRadiusEnd(double end)
setLearnRateStart
public void setLearnRateStart(double start)
setLearnRateEnd
public void setLearnRateEnd(double end)
Copyright © 2001-2006