Go to the documentation of this file.
90 os <<
"Tessem NN requires " << net.
nb_inputs
91 <<
" values, but input vector has " << nx.
nelem() <<
" element.";
92 throw std::runtime_error(os.str());
98 <<
" values, but output vector has " << ny.
nelem() <<
" element.";
99 throw std::runtime_error(os.str());
114 trans[i] += net.
w1(i, j) * new_x[j];
116 trans[i] = 2. / (1. + exp(-2. * trans[i])) - 1.;
122 new_y[i] += net.
w2(i, j) * trans[j];
127 ny[i] = net.
y_min[i] + (new_y[i] + 1.) / 2. * (net.
y_max[i] - net.
y_min[i]);
void resize(Index n)
Resize function.
void tessem_read_ascii(std::ifstream &is, TessemNN &net)
Implementation of Matrix, Vector, and such stuff.
This file contains functions that are adapted from TESSEM code which is used to calculate surface emi...
Index nelem() const
Returns the number of elements.
void resize(Index r, Index c)
Resize function.
void tessem_prop_nn(VectorView &ny, const TessemNN &net, ConstVectorView nx)
This file contains basic functions to handle ASCII files.
INDEX Index
The type to use for all integer numbers and indices.
A constant view of a Vector.
This file contains the definition of String, the ARTS string class.