5 // Created by Abu Zaher Faridee on 5/28/12.
6 // Copyright (c) 2012 Schloss Lab. All rights reserved.
12 #include "mothurout.h"
14 /***********************************************************************/
15 class OptimumFeatureSubsetSelector{
17 OptimumFeatureSubsetSelector(string selectionType = "log2"): selectionType(selectionType){
20 int getOptimumFeatureSubsetSize(int numFeatures){
22 if (selectionType == "log2"){ return (int)ceil(log2(numFeatures)); }
23 else if (selectionType == "squareRoot"){ return (int)ceil(sqrt(numFeatures)); }
30 /***********************************************************************/