![]() |
wPlot2D version: 0.1.0
A lightweight C++ library for clear and customizable 2D scientific plots.
|
Provides common mathematical helper functions for plotting and geometry. More...
#include <wMathUtils.hpp>
Static Public Member Functions | |
static std::vector< double > | linspace (double start, double end, size_t nbPoints) |
Generates a linearly spaced vector of values between two bounds. |
Provides common mathematical helper functions for plotting and geometry.
This utility class groups static methods that are frequently needed when working with numerical data, discretization, and rendering curves.
|
staticnodiscard |
Generates a linearly spaced vector of values between two bounds.
This function produces a vector of evenly spaced points between start
and end
(inclusive).
start | Starting value. |
end | Ending value. |
nbPoints | Number of points to generate (must be >= 2). |
std::invalid_argument | if start >= end or nbPoints < 2. |