Kstars
tools/math_tools.cpp
Go to the documentation of this file.
160 N = static_cast<int>(std::pow(2, std::ceil(std::log(N) / std::log(2)))); // map to nearest power of 2
169 std::vector<double> vec_data(padded_data.data(), padded_data.data() + padded_data.rows() * padded_data.cols());
177 int low_index = static_cast<int>(std::ceil(static_cast<double>(N) / static_cast<double>(N_data)));
180 Eigen::VectorXd spectrum = result.segment(low_index, N / 2 - low_index + 1).array().abs().pow(2);
181 Eigen::VectorXd frequencies = Eigen::VectorXd::LinSpaced(N / 2 - low_index + 1, low_index, N / 2);
QWidget * window(QObject *job)
Eigen::MatrixXd squareDistance(const Eigen::MatrixXd &a, const Eigen::MatrixXd &b)
Definition src/math_tools.cpp:28
Eigen::MatrixXd generate_normal_random_matrix(const size_t n, const size_t m)
Definition src/math_tools.cpp:138
Eigen::MatrixXd box_muller(const Eigen::VectorXd &vRand)
Definition src/math_tools.cpp:109
Eigen::MatrixXd generate_uniform_random_matrix_0_1(const size_t n, const size_t m)
Definition src/math_tools.cpp:95
std::pair< Eigen::VectorXd, Eigen::VectorXd > compute_spectrum(Eigen::VectorXd &data, int N)
Definition src/math_tools.cpp:151
double stdandard_deviation(Eigen::VectorXd &input)
Definition src/math_tools.cpp:198
Provides mathematical tools needed for the Gaussian process toolbox.
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Nov 29 2024 11:57:48 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Nov 29 2024 11:57:48 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.