All Implemented Interfaces:
ActionListener, ItemListener, KeyListener, ImageObserver, MenuContainer, Serializable, EventListener, Accessible, RootPaneContainer, WindowConstants

public class CPSOPanel extends BasicPSOPanel
This java class is used to create and show a panel for the parameter settings of the continuous particle swarm optimization (CPSO) method.
Author:
Sina Tabakhi
See Also:
  • Constructor Details

    • CPSOPanel

      public CPSOPanel()
      Creates new form CPSOPanel. This method is called from within the constructor to initialize the form.
  • Method Details

    • keyReleased

      public void keyReleased(KeyEvent e)
      The listener method for receiving keyboard events (keystrokes). Invoked when a key has been released.
      Specified by:
      keyReleased in interface KeyListener
      Overrides:
      keyReleased in class BasicPSOPanel
      Parameters:
      e - an action event
    • btn_okActionPerformed

      protected void btn_okActionPerformed(ActionEvent e)
      This method sets an action for the btn_ok button.
      Overrides:
      btn_okActionPerformed in class BasicPSOPanel
      Parameters:
      e - an action event
    • getTheta

      public double getTheta()
      This method returns the theta value.
      Returns:
      the theta parameter
    • setTheta

      public void setTheta(double theta)
      This method sets the theta value.
      Parameters:
      theta - the theta value
    • setDefaultValue

      public void setDefaultValue()
      Sets the default values of the CPSO parameters
      Overrides:
      setDefaultValue in class BasicPSOPanel
    • setUserValue

      public void setUserValue(ClassifierType classifierType, Object selectedClassifierPan, int numIteration, int populationSize, double inertiaWeight, double c1, double c2, double startPosInterval, double endPosInterval, double minVelocity, double maxVelocity, int kFolds, double theta)
      Sets the last values of the continuous PSO (CPSO) parameters entered by user
      Parameters:
      classifierType - the selected classifier type
      selectedClassifierPan - the selected classifier panel
      numIteration - the maximum number of allowed iterations that algorithm repeated
      populationSize - the size of population of candidate solutions
      inertiaWeight - the inertia weight in the velocity updating rule
      c1 - the acceleration constant in the velocity updating rule
      c2 - the acceleration constant in the velocity updating rule
      startPosInterval - the position interval start value of each particle
      endPosInterval - the position interval end value of each particle
      minVelocity - the velocity interval end value of each particle
      maxVelocity - the velocity interval end value of each particle
      kFolds - the number of equal sized subsamples that is used in k-fold cross validation
      theta - the threshold is used to determine whether a feature is selected or not