#include "daal.h"
#include "service.h"
using namespace std;
using namespace daal;
using namespace daal::algorithms;
using namespace daal::algorithms::normalization;
string datasetName = "../data/batch/normalization.csv";
int main()
{
FileDataSource<CSVFeatureManager> dataSource(datasetName, DataSource::doAllocateNumericTable, DataSource::doDictionaryFromContext);
dataSource.loadDataBlock();
NumericTablePtr data = dataSource.getNumericTable();
zscore::Batch<float, zscore::sumDense> algorithm;
algorithm.input.set(zscore::data, data);
algorithm.compute();
zscore::ResultPtr res = algorithm.getResult();
printNumericTable(data, "First 10 rows of the input data:", 10);
printNumericTable(res->get(zscore::normalizedData), "First 10 rows of the z-score normalization result:", 10);
return 0;
}