diff --git a/MLPP/KMeans/KMeans.cpp b/MLPP/KMeans/KMeans.cpp index 7cd118b..c4706ea 100644 --- a/MLPP/KMeans/KMeans.cpp +++ b/MLPP/KMeans/KMeans.cpp @@ -10,6 +10,7 @@ #include #include +#include namespace MLPP{ KMeans::KMeans(std::vector> inputSet, int k, std::string init_type) diff --git a/MLPP/NumericalAnalysis/NumericalAnalysis.cpp b/MLPP/NumericalAnalysis/NumericalAnalysis.cpp index 60f99e7..4762044 100644 --- a/MLPP/NumericalAnalysis/NumericalAnalysis.cpp +++ b/MLPP/NumericalAnalysis/NumericalAnalysis.cpp @@ -7,6 +7,9 @@ #include "NumericalAnalysis.hpp" #include "LinAlg/LinAlg.hpp" #include +#include +#include +#include namespace MLPP{ @@ -177,7 +180,7 @@ namespace MLPP{ */ // auto growthFunction = [&C, &k](double t) { return C * exp(k * t); }; - return C * exp(k * t); + return C * std::exp(k * t); } std::vector NumericalAnalysis::jacobian(double(*function)(std::vector), std::vector x){