This commit is contained in:
novak_99 2022-01-21 17:23:29 -08:00
parent 32bcc472aa
commit f441780e8a
2 changed files with 5 additions and 1 deletions

View File

@ -10,6 +10,7 @@
#include <iostream>
#include <random>
#include <climits>
namespace MLPP{
KMeans::KMeans(std::vector<std::vector<double>> inputSet, int k, std::string init_type)

View File

@ -7,6 +7,9 @@
#include "NumericalAnalysis.hpp"
#include "LinAlg/LinAlg.hpp"
#include <iostream>
#include <string>
#include <cmath>
#include <climits>
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<double> NumericalAnalysis::jacobian(double(*function)(std::vector<double>), std::vector<double> x){