Package jmt.engine.jwat.workloadAnalysis.clustering.fuzzyKMean

Examples of jmt.engine.jwat.workloadAnalysis.clustering.fuzzyKMean.MainFuzzyKMean


            trasf = VariableNumber.MINMAX;
          }
          if (stdDevT.isSelected()) {
            trasf = VariableNumber.STDEV;
          }
          MainFuzzyKMean eng = new MainFuzzyKMean(new ProgressMonitorShow(parent, "Processing...", 1), model.getMatrix(), parent
              .getVarSelected(),
          //numClust.getValue(),
              //numIteration.getValue(),
              //FuzzyLvl.getValue(),
              ((Integer) numOfClust.getValue()).intValue(), ((Integer) numOfIter.getValue()).intValue(), ((Double) fuzzyLevel
                  .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;
          }
          MainFuzzyKMean eng = new MainFuzzyKMean(new ProgressMonitorShow(parent, "Processing...", 1), model.getMatrix(), parent
              .getVarSelected(),
          //numClust.getValue(),
              //numIteration.getValue(),
              //FuzzyLvl.getValue(),
              ((Integer) numOfClust.getValue()).intValue(), ((Integer) numOfIter.getValue()).intValue(), ((Double) fuzzyLevel
                  .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);
        }
View Full Code Here

TOP

Related Classes of jmt.engine.jwat.workloadAnalysis.clustering.fuzzyKMean.MainFuzzyKMean

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.