| 1 |
// @HEADER |
| 2 |
// ***************************************************************************** |
| 3 |
// Rapid Optimization Library (ROL) Package |
| 4 |
// |
| 5 |
// Copyright 2014 NTESS and the ROL contributors. |
| 6 |
// SPDX-License-Identifier: BSD-3-Clause |
| 7 |
// ***************************************************************************** |
| 8 |
// @HEADER |
| 9 |
|
| 10 |
#ifndef ROL_OED_NOISE_HPP |
| 11 |
#define ROL_OED_NOISE_HPP |
| 12 |
|
| 13 |
#include <vector> |
| 14 |
|
| 15 |
namespace ROL { |
| 16 |
namespace OED { |
| 17 |
|
| 18 |
template<typename Real> |
| 19 |
class Noise { |
| 20 |
public: |
| 21 |
virtual ~Noise() {} |
| 22 |
|
| 23 |
// Standard deviation of noise |
| 24 |
virtual Real evaluate(const std::vector<Real> ¶m) const { |
| 25 |
return static_cast<Real>(1); |
| 26 |
} |
| 27 |
|
| 28 |
// Moment generating function of noise evaluated at t=2 |
| 29 |
virtual Real mgf2(const std::vector<Real> ¶m) const { |
| 30 |
return static_cast<Real>(2); |
| 31 |
} |
| 32 |
}; // class Noise |
| 33 |
|
| 34 |
} // End OED Namespace |
| 35 |
} // End ROL Namespace |
| 36 |
|
| 37 |
#endif |