summaryrefslogtreecommitdiff
path: root/viterbi_generator/make_function.m
blob: 98eae814464083f8b799f979bdc44634dd7c4ed9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
#!/usr/bin/octave --silent

 ###########################################################################
 #   Copyright (C) 2008 by Piotr Krysik                                    #
 #   pkrysik@stud.elka.pw.edu.pl                                           #
 #                                                                         #
 #   This program is free software; you can redistribute it and/or modify  #
 #   it under the terms of the GNU General Public License as published by  #
 #   the Free Software Foundation; either version 3 of the License, or     #
 #   (at your option) any later version.                                   #
 #                                                                         #
 #   This program is distributed in the hope that it will be useful,       #
 #   but WITHOUT ANY WARRANTY; without even the implied warranty of        #
 #   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         #
 #   GNU General Public License for more details.                          #
 #                                                                         #
 #   You should have received a copy of the GNU General Public License     #
 #   along with this program; if not, write to the                         #
 #   Free Software Foundation, Inc.,                                       #
 #   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             #
 ###########################################################################
 
addpath("./utils");
addpath("./utils/lower_utils");
addpath("./utils/lower_utils/lower_utils");
arg_list=argv();
Lh=sscanf(arg_list{1}, "%d", "C");
license_statement="\
/***************************************************************************\n\
 *   Copyright (C) 2008 by Piotr Krysik                                    *\n\
 *   pkrysik@stud.elka.pw.edu.pl                                           *\n\
 *                                                                         *\n\
 *   This program is free software; you can redistribute it and/or modify  *\n\
 *   it under the terms of the GNU General Public License as published by  *\n\
 *   the Free Software Foundation; either version 2 of the License, or     *\n\
 *   (at your option) any later version.                                   *\n\
 *                                                                         *\n\
 *   This program is distributed in the hope that it will be useful,       *\n\
 *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *\n\
 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *\n\
 *   GNU General Public License for more details.                          *\n\
 *                                                                         *\n\
 *   You should have received a copy of the GNU General Public License     *\n\
 *   along with this program; if not, write to the                         *\n\
 *   Free Software Foundation, Inc.,                                       *\n\
 *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             *\n\
 ***************************************************************************/\n\n";
f_name="viterbi_detector";
viterbi_detector_file = fopen([f_name '.cpp'],'w');
viterbi_detector = viterbi_generator(Lh);
fprintf(viterbi_detector_file, "%s", license_statement);
fprintf(viterbi_detector_file, "%s", viterbi_detector);


personal git repositories of Harald Welte. Your mileage may vary