#include#include int main() { // Load data from CSV file auto data = DataSet::Csv::Reader::read("example.csv"); // Calculate mean and standard deviation of a column auto column = data.column("Age"); auto mean = DataSet::Statistics::mean(column); auto stdev = DataSet::Statistics::standard_deviation(column); // Output results std::cout << "Mean: " << mean << std::endl; std::cout << "Standard deviation: " << stdev << std::endl; }
#includeIn this example, we again load data from a CSV file using the `DataSet::Csv::Reader` class. We then create a scatter plot using the `DataSet::Plot::scatter` function, passing in two columns of data. Finally, we display the plot using the `show` function. Overall, the cpp DataSet package library is a powerful tool for working with datasets and performing data analysis in C++, providing a range of useful functionality for managing, manipulating, and analyzing large sets of data.#include int main() { // Load data from CSV file auto data = DataSet::Csv::Reader::read("example.csv"); // Create scatter plot auto plot = DataSet::Plot::scatter(data.column("Age"), data.column("Income")); // Show plot plot.show(); }