ARTS  2.4.0(git:4fb77825)
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 }
TestTessem
void TestTessem(Vector &outvalues, const TessemNN &net, const Vector &invalues, const Verbosity &verbosity)
WORKSPACE METHOD: TestTessem.
Definition: m_tessem.cc:43
TessemNN::nb_outputs
Index nb_outputs
Definition: tessem.h:35
ARTS::Var::verbosity
Verbosity verbosity(Workspace &ws) noexcept
Definition: autoarts.h:7112
Vector::resize
void resize(Index n)
Resize function.
Definition: matpackI.cc:404
open_input_file
void open_input_file(ifstream &file, const String &name)
Open a file for reading.
Definition: file.cc:147
TessemNN
Definition: tessem.h:33
tessem_read_ascii
void tessem_read_ascii(std::ifstream &is, TessemNN &net)
Definition: tessem.cc:41
CREATE_OUT1
#define CREATE_OUT1
Definition: messages.h:205
matpackI.h
Implementation of Matrix, Vector, and such stuff.
tessem.h
This file contains functions that are adapted from TESSEM code which is used to calculate surface emi...
my_basic_string< char >
Verbosity
Definition: messages.h:49
tessem_prop_nn
void tessem_prop_nn(VectorView &ny, const TessemNN &net, ConstVectorView nx)
Definition: tessem.cc:87
TessemNNReadAscii
void TessemNNReadAscii(TessemNN &net, const String &net_file, const Verbosity &)
WORKSPACE METHOD: TessemNNReadAscii.
Definition: m_tessem.cc:33
file.h
This file contains basic functions to handle ASCII files.
Vector
The Vector class.
Definition: matpackI.h:860
mystring.h
This file contains the definition of String, the ARTS string class.