|
bitrl & cuberl Documentation
Simulation engine for reinforcement learning agents
|
Namespaces | |
| namespace | stats |
Functions | |
| template<typename T > | |
| int_t | sign (const T &expr) |
| template<typename T > | |
| int_t | sign (const T &expr1, const T &expr2) |
| template<typename T > | |
| T | sum_sqr (const DynVec< T > &vec) |
| Compute the sum of squares of the elements of the given vector. | |
| template<typename T > | |
| T | sqr (const T &v) |
| template<typename VectorType > | |
| uint_t | arg_max (const VectorType &vec) |
| Returns the index of the element that has the maximum value in the array. Implementation taken from http://www.jclay.host/dev-journal/simple_cpp_argmax_argmin.html. | |
| template<typename VectorType > | |
| uint_t | arg_min (const VectorType &vec) |
| Returns the index of the element that has the minimum value in the array. Implementation taken from http://www.jclay.host/dev-journal/simple_cpp_argmax_argmin.html. | |
| template<typename VectorType > | |
| VectorType::value_type | max (const VectorType &vec) |
| Returns the max element in the vector. | |
| template<typename VectorType > | |
| VectorType::value_type | min (const VectorType &vec) |
| Returns the minimum element in the vector. | |
| template<typename T > | |
| std::vector< T > | lin_space (T start, T stop, uint_t n) |
| Generate n evenly linearly spaced numbers between [start, stop]. Analogous to NumPy linspace. | |
| uint_t bitrl::utils::maths::arg_max | ( | const VectorType & | vec | ) |
Returns the index of the element that has the maximum value in the array. Implementation taken from http://www.jclay.host/dev-journal/simple_cpp_argmax_argmin.html.
| uint_t bitrl::utils::maths::arg_min | ( | const VectorType & | vec | ) |
Returns the index of the element that has the minimum value in the array. Implementation taken from http://www.jclay.host/dev-journal/simple_cpp_argmax_argmin.html.
Generate n evenly linearly spaced numbers between [start, stop]. Analogous to NumPy linspace.
| VectorType::value_type bitrl::utils::maths::max | ( | const VectorType & | vec | ) |
Returns the max element in the vector.
| VectorType::value_type bitrl::utils::maths::min | ( | const VectorType & | vec | ) |
Returns the minimum element in the vector.