Class SubsetSelectedFeatures

java.lang.Object
es.upm.fi.cig.multictbnc.fss.SubsetSelectedFeatures

public class SubsetSelectedFeatures extends Object
Class that encapsulates the names of the feature variables selected by a FSS algorithm and the execution time of this algorithm to provide that solution.
  • Constructor Details

    • SubsetSelectedFeatures

      public SubsetSelectedFeatures(List<String> features, double executionTime)
      Constructs an instance of SubsetSelectedFeatureVariables.
      Parameters:
      features - list of names of the features selected by the FSS algorithm
      executionTime - time taken by the FSS algorithm to provide the solution
  • Method Details

    • containsFeature

      public boolean containsFeature(String nameFeature)
      Checks if a specific feature is included in the selected subset.
      Parameters:
      nameFeature - name of the feature to check
      Returns:
      true if the specified feature is part of the selected subset, false otherwise
    • getExecutionTime

      public double getExecutionTime()
      Retrieves the execution time of the FSS algorithm.
      Returns:
      the execution time of the FSS algorithm
    • getFeatures

      public List<String> getFeatures()
      Provides the list of features selected by the FSS algorithm.
      Returns:
      list of names of the selected features
    • toString

      public String toString()
      Overrides:
      toString in class Object