Closed Kiyoshika closed 3 years ago
Implemented.
#include <iostream>
#include "data/DataSet.h"
#include "stats/Density/KernelDensity.h"
using namespace std;
int main() {
DataSet mydata;
mydata.load("test.csv");
KernelDensity kd;
kd.fit(mydata.cast_target_double());
cout << kd.evaluate(3) << "\n";
cout << kd.integrate(1, 3) << "\n";
cout << kd.cdf(3) << "\n";
cout << kd.inverse_cdf(0.5) << "\n";
return 0;
}
Implement kernel density estimation.