mirror of
https://github.com/Relintai/MLPP.git
synced 2025-02-10 16:10:06 +01:00
so
This commit is contained in:
parent
32bcc472aa
commit
f441780e8a
@ -10,6 +10,7 @@
|
|||||||
|
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
#include <random>
|
#include <random>
|
||||||
|
#include <climits>
|
||||||
|
|
||||||
namespace MLPP{
|
namespace MLPP{
|
||||||
KMeans::KMeans(std::vector<std::vector<double>> inputSet, int k, std::string init_type)
|
KMeans::KMeans(std::vector<std::vector<double>> inputSet, int k, std::string init_type)
|
||||||
|
@ -7,6 +7,9 @@
|
|||||||
#include "NumericalAnalysis.hpp"
|
#include "NumericalAnalysis.hpp"
|
||||||
#include "LinAlg/LinAlg.hpp"
|
#include "LinAlg/LinAlg.hpp"
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
|
#include <string>
|
||||||
|
#include <cmath>
|
||||||
|
#include <climits>
|
||||||
|
|
||||||
namespace MLPP{
|
namespace MLPP{
|
||||||
|
|
||||||
@ -177,7 +180,7 @@ namespace MLPP{
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
// auto growthFunction = [&C, &k](double t) { return C * exp(k * t); };
|
// 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){
|
std::vector<double> NumericalAnalysis::jacobian(double(*function)(std::vector<double>), std::vector<double> x){
|
||||||
|
Loading…
Reference in New Issue
Block a user