This commit is contained in:
2024-11-18 20:38:48 +08:00
parent b425fe89af
commit a1ab16834b
3 changed files with 4 additions and 4 deletions

View File

@@ -61,7 +61,7 @@ int gctl::mathgl_plot::Draw(mglGraph *gr)
x_d.Set(x_.get(), x_.size());
y_d.Set(ys_.get(), ys_.size());
double mean = gctl::mean(ys_);
double mean = ys_.mean();
double mini = ys_.front(), maxi = ys_.front();
for (size_t i = 1; i < ys_.size(); i++)
{