SelectDialog sel = new SelectDialog(EncogWorkBench.getInstance()
.getMainWindow(), list);
sel.setVisible(true);
if (sel.getSelected() == selectBasicSOM) {
InputSOM somDialog = new InputSOM();
if (somDialog.process()) {
BasicTrainSOM train = new BasicTrainSOM((SOM) file.getObject(),
somDialog.getLearningRate().getValue(), trainingData,
somDialog.getNeighborhoodFunction());
train.setForceWinner(somDialog.getForceWinner().getValue());
startup(file, train, somDialog.getMaxError().getValue() / 100.0);
}
} else if (sel.getSelected() == selectSOMClusterCopy) {
SOMClusterCopyTraining train = new SOMClusterCopyTraining(
(SOM) file.getObject(), trainingData);
train.iteration();