WPILibC++ 2027.0.0-alpha-4
Loading...
Searching...
No Matches
Normal.hpp File Reference
#include <array>
#include <concepts>
#include <random>
#include <span>
#include <Eigen/Core>
#include "wpi/util/Algorithm.hpp"
#include "wpi/util/SymbolExports.hpp"

Go to the source code of this file.

Namespaces

namespace  wpi
namespace  wpi::math

Functions

template<std::same_as< double >... Ts>
Eigen::Vector< double, sizeof...(Ts)> wpi::math::Normal (Ts... stdDevs)
 Creates a vector of normally distributed random values with the given standard deviations for each element.
template<int N>
Eigen::Vector< double, N > wpi::math::Normal (const std::array< double, N > &stdDevs)
 Creates a vector of normally distributed random values with the given standard deviations for each element.
WPILIB_DLLEXPORT Eigen::VectorXd wpi::math::Normal (const std::span< const double > stdDevs)
 Creates a vector of normally distributed random values with the given standard deviations for each element.