14#include "matpack_data.h"
32 for (Index i = 0; i < net.
nb_cache; i++)
71 " values, but input vector has ", nx.nelem(),
" element.")
75 " values, but output vector has ", ny.nelem(),
" element.")
86 Vector trans = net.
b1;
87 for (Index i = 0; i < net.
nb_cache; i++) {
89 trans[i] += net.
w1(i, j) * new_x[j];
91 trans[i] = 2. / (1. + exp(-2. * trans[i])) - 1.;
94 Vector new_y = net.
b2;
96 for (Index j = 0; j < net.
nb_cache; j++)
97 new_y[i] += net.
w2(i, j) * trans[j];
102 ny[i] = net.
y_min[i] + (new_y[i] + 1.) / 2. * (net.
y_max[i] - net.
y_min[i]);
Input manipulator class for doubles to enable nan and inf parsing.
#define ARTS_USER_ERROR_IF(condition,...)
This file contains basic functions to handle ASCII files.
This file contains the definition of String, the ARTS string class.
void tessem_read_ascii(std::ifstream &is, TessemNN &net)
void tessem_prop_nn(VectorView ny, const TessemNN &net, ConstVectorView nx)
This file contains functions that are adapted from TESSEM code which is used to calculate surface emi...