Kiyoshika / CppEZML

A work in progress C++ machine learning library designed to be very easy to use. Everything pretty much written from scratch.
0 stars 0 forks source link

Stats.h - Create new header for statistical functions #12

Closed Kiyoshika closed 3 years ago

Kiyoshika commented 3 years ago

Implement standard statistical functions such as mean, median, mode, stdev, percentiles, etc.

Kiyoshika commented 3 years ago

Implemented.

#include <iostream>
#include "data/DataSet.h"
#include "stats/Stats.h"
using namespace std;

int main() {
    DataSet mydata;

    mydata.load("test.csv");
    Stats stats;
    cout << stats.mean(mydata.data, 0) << "\n";

    return 0;
}