30 #ifndef MCL_3DL_NOISE_GENERATORS_DIAGONAL_NOISE_GENERATOR_H 31 #define MCL_3DL_NOISE_GENERATORS_DIAGONAL_NOISE_GENERATOR_H 40 template <
typename FLT_TYPE>
56 sigma_.resize(sigma.size());
57 for (
size_t i = 0; i < sigma.size(); ++i)
63 template <
typename RANDOM_ENGINE>
64 std::vector<FLT_TYPE>
operator()(RANDOM_ENGINE& engine)
const 66 std::vector<FLT_TYPE> noise(
sigma_.size());
67 for (
size_t i = 0; i <
sigma_.size(); i++)
70 noise[i] = nd(engine);
81 #endif // MCL_3DL_NOISE_GENERATORS_DIAGONAL_NOISE_GENERATOR_H void setSigma(const T &sigma)
std::vector< FLT_TYPE > mean_
std::vector< FLT_TYPE > sigma_
std::vector< FLT_TYPE > operator()(RANDOM_ENGINE &engine) const
void setMean(const T &mean)
DiagonalNoiseGenerator(const T &mean, const T &sigma)