trasf = VariableNumber.MINMAX;
}
if (stdDevT.isSelected()) {
trasf = VariableNumber.STDEV;
}
MainKMean eng = new MainKMean(new ProgressMonitorShow(parent, "Processing...", 1), model.getMatrix(), parent.getVarSelected(),
//numClust.getValue(),
//numIteration.getValue(),
((Integer) numOfClust.getValue()).intValue(), ((Integer) numOfIter.getValue()).intValue(), trasf);
eng.addStatusListener(lst);
eng.start();
((JWatWizard) parent.getParentWizard()).setEnableButton("Solve", false);
} else {
JOptionPane.showMessageDialog(parent, "Select at least two variables to proceed with clustering", "Warning",
JOptionPane.WARNING_MESSAGE);
}
}
});
((MainJwatWizard) parent.getParentWizard()).setActionTool(new AbstractAction() {
/**
*
*/
private static final long serialVersionUID = 1L;
{
putValue(Action.SHORT_DESCRIPTION, "Clusterize");
putValue(Action.SMALL_ICON, JMTImageLoader.loadImage("Sim"));
putValue(Action.ACCELERATOR_KEY, KeyStroke.getKeyStroke(KeyEvent.VK_L, ActionEvent.CTRL_MASK));
putValue(Action.MNEMONIC_KEY, new Integer(KeyEvent.VK_L));
}
public void actionPerformed(ActionEvent e) {
if (parent.getVarSelected().length >= 2) {
short trasf = VariableNumber.NONE;
if (minmaxT.isSelected()) {
trasf = VariableNumber.MINMAX;
}
if (stdDevT.isSelected()) {
trasf = VariableNumber.STDEV;
}
MainKMean eng = new MainKMean(new ProgressMonitorShow(parent, "Processing...", 1), model.getMatrix(), parent.getVarSelected(),
//numClust.getValue(),
//numIteration.getValue(),
((Integer) numOfClust.getValue()).intValue(), ((Integer) numOfIter.getValue()).intValue(), trasf);
eng.addStatusListener(lst);
eng.start();