The Fib multimedia system
Fib is a system for storing multimedia data (like images or films).
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
nD1.h
Go to the documentation of this file.
1 /**
2  * @file nD1
3  * file name: nD1.h
4  * @author Betti Oesterholz
5  * @date 07.06.2010
6  * @mail webmaster@BioKom.info
7  *
8  * System: C++
9  *
10  * This header specifies functions for a one dimensional data.
11  * Copyright (C) @c GPL3 2010 Betti Oesterholz
12  *
13  * This program is free software: you can redistribute it and/or modify
14  * it under the terms of the GNU General Public License (GPL) as
15  * published by the Free Software Foundation, either version 3 of the
16  * License, or any later version.
17  *
18  * This program is distributed in the hope that it will be useful,
19  * but WITHOUT ANY WARRANTY; without even the implied warranty of
20  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21  * GNU Lesser General Public License for more details.
22  *
23  * You should have received a copy of the GNU General Public License
24  * along with this program. If not, see <http://www.gnu.org/licenses/>.
25  *
26  *
27  * This header specifies functions for a one dimensional data.
28  *
29  */
30 /*
31 History:
32 07.06.2010 Oesterholz created
33 */
34 
35 #ifndef ___C_N_D1_H__
36 #define ___C_N_D1_H__
37 
38 
39 #include "version.h"
40 
41 #include "./cDataPoint.h"
42 #include "./cDataPointRange.h"
43 
44 #include <vector>
45 #include <algorithm>
46 
47 using namespace std;
48 
49 
50 namespace fib{
51 
52 namespace algorithms{
53 
54 namespace nD1{
55 
56 
57  /**
58  * This function evaluats a derivate of a vector with datapoints.
59  * To evalue the derivate the differnce in the y values of to
60  * neibourpoints is divided with ther distance.
61  *
62  * @param vecInput the vector with the range data points, for which the
63  * derivate is to be evalued
64  * @return the vector with derivate range datapoints
65  */
66  template <class tX, class tY>
67  vector< cDataPoint<tX, tY> > derivate(
68  const vector< cDataPoint<tX, tY> > & vecInput );
69 
70 
71  /**
72  * This function evaluats a derivate of a vector with range datapoints.
73  * To evalue the derivate a point with the minimal range size is choosen
74  * as the devolopment point. For every other point the maximal and minimal
75  * distance betwean two bounderies of the point and the devolopment point
76  * is evalued and divided by the distance betwean the points.
77  *
78  * @param vecInput the vector with the range data points, for which the
79  * derivate is to be evalued
80  * @return a pair with it's elements:
81  * - the first element is the vector with derivate range datapoints
82  * - the second element is the devolopment point which was choosen
83  */
84  template <class tX, class tY>
85  pair< vector< cDataPointRange<tX, tY> >, cDataPointRange<tX, tY> > derivateDist(
86  const vector< cDataPointRange<tX, tY> > & vecInput );
87 
88 
89 
90 
91 };//end namespace nD1
92 };//end namespace algorithms
93 };//end namespace fib
94 
95 //include template implementation
96 #include "../src/nD1.cpp"
97 
98 
99 
100 #endif //___C_N_D1_H__