Go to the documentation of this file.
42 const double X[] = {1, 2, 3, 4};
43 const double Y[] = {6, 5, 7, 10};
63 win.plot(
x,
y,
".3r",
"training_points");
68 int main(
int argc,
char** argv)
76 catch (std::exception& e)
78 std::cout <<
"MRPT exception caught: " << e.what() << std::endl;
83 printf(
"Another exception!!");
Column vector, like Eigen::MatrixX*, but automatically initialized to zeros since construction.
bool loadVector(std::istream &f, std::vector< int > &d)
Loads one row of a text file as a numerical std::vector.
mrpt::gui::CDisplayWindow3D::Ptr win
NUMTYPE leastSquareLinearFit(const NUMTYPE t, const VECTORLIKE &x, const VECTORLIKE &y, bool wrap2pi=false)
Interpolates or extrapolates using a least-square linear fit of the set of values "x" and "y",...
void linspace(T first, T last, size_t count, VECTOR &out_vector)
Generates an equidistant sequence of numbers given the first one, the last one and the desired number...
Classes for creating GUI windows for 2D and 3D visualization.
Create a GUI window and display plots with MATLAB-like interfaces and commands.
This base provides a set of functions for maths stuff.
void normalize(const VEC1 &v, VEC2 &out_v)
Normalize a vector, such as its norm is the unity.
Page generated by Doxygen 1.8.17 for MRPT 1.9.9 Git: ad3a9d8ae Tue May 1 23:10:22 2018 -0700 at miƩ 12 jul 2023 10:03:34 CEST | |