gtkIOStream
1.7.0
GTK+ << C++ IOStream operators for GTK+. Now with ORBing, numerical computation, audio client and more ...
DeBoor.H
Go to the documentation of this file.
1
/* Copyright 2000-2018 Matt Flax <flatmax@flatmax.org>
2
This file is part of GTK+ IOStream class set
3
4
GTK+ IOStream is free software; you can redistribute it and/or modify
5
it under the terms of the GNU General Public License as published by
6
the Free Software Foundation; either version 2 of the License, or
7
(at your option) any later version.
8
9
GTK+ IOStream 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 have received a copy of the GNU General Public License
15
along with GTK+ IOStream
16
*/
17
#ifndef DEBOOR_H
18
#define DEBOOR_H
19
20
#include <vector>
21
//#include <array>
22
using namespace
std
;
23
26
class
DeBoor
{
27
float
breakp[5];
28
float
coef[4][4];
29
int
l
;
30
31
float
**
v
;
32
float
**
a
;
33
int
N
;
34
35
// vector<array<float, 7>> v; ///< work array
36
// vector<array<float, 4>> a; ///< results array
37
41
void
createMatrices(
int
n);
42
47
float
**&createMatrix(
int
k);
48
void
deleteMatrices();
49
53
void
deleteMatrix(
float
**m);
54
56
vector<float>
resultCSAPS
;
57
public
:
58
DeBoor
();
59
virtual
~
DeBoor
();
60
68
void
csaps
(
float
*
x
,
float
*
y
,
float
*
dy
,
int
n,
float
s);
69
70
float
operator[](
int
i);
71
};
72
73
#endif // DEBOOR_H
x
float * x
Definition:
DeBoorInstance.H:24
DeBoor::a
float ** a
results array
Definition:
DeBoor.H:32
std
STL namespace.
DeBoor
Definition:
DeBoor.H:26
csaps
void csaps()
Definition:
DeBoorInstance.H:31
y
float * y
Definition:
DeBoorInstance.H:25
DeBoor::N
int N
The number of samples int he work and results array.
Definition:
DeBoor.H:33
DeBoor::resultCSAPS
vector< float > resultCSAPS
The result of csaps.
Definition:
DeBoor.H:56
DeBoor::v
float ** v
work array
Definition:
DeBoor.H:31
DeBoor::l
int l
Number of poly. pieces making up the cubic smoothing spline pp-rep.
Definition:
DeBoor.H:29
dy
float * dy
Definition:
DeBoorInstance.H:26
gtkIOStream: /tmp/gtkiostream/include/DeBoor.H Source File
Support this project by purchasing our hardware.
GTK+ IOStream
Beta