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];
INDEX Index
The type to use for all integer numbers and indices.
void tessem_read_ascii(std::ifstream &is, TessemNN &net)
This file contains basic functions to handle ASCII files.
Index nelem() const
Returns the number of elements.
_CS_string_type str() const
This file contains functions that are adapted from TESSEM code which is used to calculate surface emi...
Implementation of Matrix, Vector, and such stuff.
void resize(Index n)
Resize function.
A constant view of a Vector.
void tessem_prop_nn(VectorView &ny, const TessemNN &net, ConstVectorView nx)
This file contains the definition of String, the ARTS string class.
void resize(Index r, Index c)
Resize function.