#include <InputPreprocessor.h>
Definition at line 29 of file InputPreprocessor.h.
◆ InputPreprocessor()
| lwtDev::InputPreprocessor::InputPreprocessor |
( |
const std::vector< Input > & | inputs | ) |
|
Definition at line 12 of file InputPreprocessor.cxx.
12 :
15 {
16 size_t in_num = 0;
17 for (const auto& input: inputs) {
21 in_num++;
22 }
23 }
◆ operator()()
| VectorXd lwtDev::InputPreprocessor::operator() |
( |
const ValueMap & | in | ) |
const |
Definition at line 24 of file InputPreprocessor.cxx.
24 {
26 size_t input_number = 0;
27 for (
const auto& in_name:
m_names) {
28 if (!in.count(in_name)) {
29 throw NNEvaluationException("can't find input: " + in_name);
30 }
31 invec(input_number) = in.at(in_name);
32 input_number++;
33 }
35 }
◆ m_names
| std::vector<std::string> lwtDev::InputPreprocessor::m_names |
|
private |
◆ m_offsets
| VectorXd lwtDev::InputPreprocessor::m_offsets |
|
private |
◆ m_scales
| VectorXd lwtDev::InputPreprocessor::m_scales |
|
private |
The documentation for this class was generated from the following files: