This commit is contained in:
2025-07-25 12:18:28 +08:00
parent a455a10150
commit 3b9dee6900
4 changed files with 11 additions and 9 deletions

View File

@@ -389,8 +389,8 @@ void statistic(const std::vector<std::string> &cmd_units)
{
tc.get_column(data, cmd_units[i]);
std::clog << "column: " << cmd_units[i]
<< " | " << data.min() << "/" << data.mean() << "/" << data.max()
<< " | STD: " << data.std() << "\n";
<< " | " << min(data) << "/" << mean(data) << "/" << max(data)
<< " | STD: " << gctl::std(data) << "\n";
}
return;
}
@@ -476,7 +476,7 @@ void rand_data(const std::vector<std::string> &cmd_units)
double p1 = atof(cmd_units[2].c_str());
double p2 = atof(cmd_units[3].c_str());
array<double> rd_data(tc.row_number());
rd_data.random_float(p1, p2, rd_type);
random_float(rd_data, p1, p2, rd_type);
if (cmd_units.size() >= 5) tc.fill_column(rd_data, cmd_units[4], 12);
else

View File

@@ -29,6 +29,7 @@
#define GCTL_DSVIEWER_H
#include <regex>
#include "gctl/core/array_algorithm.h"
#include "gctl/io.h"
using namespace gctl;