java.lang.Object
es.upm.fi.cig.multictbnc.fss.SubsetSelectedFeatures
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 Summary
ConstructorDescriptionSubsetSelectedFeatures
(List<String> features, double executionTime) Constructs an instance of SubsetSelectedFeatureVariables. -
Method Summary
Modifier and TypeMethodDescriptionboolean
containsFeature
(String nameFeature) Checks if a specific feature is included in the selected subset.double
Retrieves the execution time of the FSS algorithm.Provides the list of features selected by the FSS algorithm.toString()
-
Constructor Details
-
SubsetSelectedFeatures
Constructs an instance of SubsetSelectedFeatureVariables.- Parameters:
features
- list of names of the features selected by the FSS algorithmexecutionTime
- time taken by the FSS algorithm to provide the solution
-
-
Method Details
-
containsFeature
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
Provides the list of features selected by the FSS algorithm.- Returns:
- list of names of the selected features
-
toString
-