ARTS  2.3.1285(git:92a29ea9-dirty)
m_tessem.cc
Go to the documentation of this file.
1 /* Copyright (C) 2016
2  Oliver Lemke <olemke@core-dump.info>
3 
4  This program is free software; you can redistribute it and/or modify it
5  under the terms of the GNU General Public License as published by the
6  Free Software Foundation; either version 2, or (at your option) any
7  later version.
8 
9  This program is distributed in the hope that it will be useful,
10  but WITHOUT ANY WARRANTY; without even the implied warranty of
11  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12  GNU General Public License for more details.
13 
14  You should have received a copy of the GNU General Public License
15  along with this program; if not, write to the Free Software
16  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
17  USA.
18 */
19 
27 #include "file.h"
28 #include "matpackI.h"
29 #include "mystring.h"
30 #include "tessem.h"
31 
32 /* Workspace method: Doxygen documentation will be auto-generated */
34  const String& net_file,
35  const Verbosity&) {
36  ifstream net_is;
37 
38  open_input_file(net_is, net_file);
39  tessem_read_ascii(net_is, net);
40 }
41 
42 /* Workspace method: Doxygen documentation will be auto-generated */
43 void TestTessem(Vector& outvalues,
44  const TessemNN& net,
45  const Vector& invalues,
46  const Verbosity& verbosity) {
48  outvalues.resize(net.nb_outputs);
49  tessem_prop_nn(outvalues, net, invalues);
50  out1 << "Input values : " << invalues << "\n";
51  out1 << "Output values : " << outvalues << "\n";
52 }
Index nb_outputs
Definition: tessem.h:35
The Vector class.
Definition: matpackI.h:860
void TestTessem(Vector &outvalues, const TessemNN &net, const Vector &invalues, const Verbosity &verbosity)
WORKSPACE METHOD: TestTessem.
Definition: m_tessem.cc:43
void tessem_read_ascii(std::ifstream &is, TessemNN &net)
Definition: tessem.cc:41
This file contains basic functions to handle ASCII files.
This file contains functions that are adapted from TESSEM code which is used to calculate surface emi...
#define CREATE_OUT1
Definition: messages.h:205
void TessemNNReadAscii(TessemNN &net, const String &net_file, const Verbosity &)
WORKSPACE METHOD: TessemNNReadAscii.
Definition: m_tessem.cc:33
Implementation of Matrix, Vector, and such stuff.
void open_input_file(ifstream &file, const String &name)
Open a file for reading.
Definition: file.cc:147
void resize(Index n)
Resize function.
Definition: matpackI.cc:404
void tessem_prop_nn(VectorView &ny, const TessemNN &net, ConstVectorView nx)
Definition: tessem.cc:87
This file contains the definition of String, the ARTS string class.