|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.joone.util.AbstractConverterPlugIn
org.joone.util.ConverterPlugIn
org.joone.util.RbfRandomCenterSelector
public class RbfRandomCenterSelector
This plug in is used to select fixed centers for Gaussian RBF layers randomly from the input data. Therefore, I implemented the selector as a plug in, because this way I can easily select centers randomly from the input.
Field Summary |
---|
Fields inherited from class org.joone.util.AbstractConverterPlugIn |
---|
pluginListeners |
Constructor Summary | |
---|---|
RbfRandomCenterSelector(RbfGaussianLayer aRbfGaussianLayer)
Creates a new instance of RbfRandomCenterSelector |
Method Summary | |
---|---|
protected boolean |
convert(int serie)
Applies the conversion on the Nth serie of the buffered pattern data. |
protected double |
getDistance(Pattern aCenter1,
Pattern aCenter2)
Gets the distance between two centers. |
RbfGaussianParameters[] |
getGaussianParameters()
Gets the parameters for the different nodes in a RBF layer. |
protected double |
getMaxDistance(java.util.Vector aPatterns,
int[] anIndexes)
Gets the maximum distance between centers. |
Methods inherited from class org.joone.util.ConverterPlugIn |
---|
isApplyEveryCycle, newCycle, setApplyEveryCycle |
Methods inherited from class org.joone.util.AbstractConverterPlugIn |
---|
addPlugIn, addPlugInListener, apply, applyOnColumns, applyOnRows, cascade, check, convertPatterns, dataChanged, fireDataChanged, getAdvancedSerieSelector, getInputVector, getName, getNextPlugIn, getPluginListeners, getSerieIndexNumber, getSerieSelected, getValuePoint, isConnected, removeAllPlugIns, removePlugInListener, setAdvancedSerieSelector, setConnected, setInputVector, setName, setNextPlugin, setNextPlugIn |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RbfRandomCenterSelector(RbfGaussianLayer aRbfGaussianLayer)
aRbfGaussianLayer
- the RBF Gaussian layer to get the number of nodes.Method Detail |
---|
protected boolean convert(int serie)
AbstractConverterPlugIn
AbstractConverterPlugIn.getInputVector()
method. The result is a
Vector
of Pattern
objects which this method should use by converting
the requested serie.
convert
in class AbstractConverterPlugIn
serie
- the serie to convertpublic RbfGaussianParameters[] getGaussianParameters()
protected double getMaxDistance(java.util.Vector aPatterns, int[] anIndexes)
aPatterns
- all the input patterns (which might have been selected
to become a center).anIndexes
- the indexes of the selected centers.protected double getDistance(Pattern aCenter1, Pattern aCenter2)
aCenter1
- the first center.aCenter2
- the second center.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |