BOSS
8.0.0
BESIII Offline Software System
Loading...
Searching...
No Matches
EvtPolInt.hh
Go to the documentation of this file.
1
//--------------------------------------------------------------------------
2
//
3
// Environment:
4
// This software is part of models developed at BES collaboration
5
// based on the EvtGen framework. If you use all or part
6
// of it, please give an appropriate acknowledgement.
7
//
8
// Copyright Information: See EvtGen/BesCopyright
9
// Copyright (A) 2006 Ping Rong-Gang, Pang Cai-Ying@IHEP
10
//
11
// Module: EvtEvtPloInt.hh
12
//
13
// Description: Routine to deal with polynomial interpolation
14
//
15
// Modification history:
16
//
17
// Ping R.-G. December, 2010 Module created
18
//
19
//------------------------------------------------------------------------
20
#ifndef EVTPOLINT_HH
21
#define EVTPOLINT_HH
22
23
#include <cmath>
24
#include <iostream>
25
#include <string>
26
#include <vector>
27
using
std::endl;
28
using
std::vector;
29
30
class
EvtPolInt
{
31
public
:
32
EvtPolInt
( vector<double> xi, vector<double> yi,
double
x ) {
33
xx = x;
34
size = xi.size();
35
vx.clear();
36
vy.clear();
37
for
(
int
i = 0; i < size; i++ )
38
{
39
vx.push_back( xi[i] );
40
vy.push_back( yi[i] );
41
}
42
}
43
virtual
~EvtPolInt
() {}
44
45
void
polynomial
();
// polynomial interpolation see: Numerical recipes in C++ page 82
46
void
ratint
();
47
vector<double>
spline
();
48
void
splint
();
49
double
getvalue
();
50
double
geterror
();
51
52
private
:
53
vector<double> vx, vy;
54
double
xx, value, error;
55
int
size;
56
};
57
58
#endif
EvtPolInt::getvalue
double getvalue()
Definition
EvtPolInt.cc:179
EvtPolInt::geterror
double geterror()
Definition
EvtPolInt.cc:186
EvtPolInt::spline
vector< double > spline()
Definition
EvtPolInt.cc:111
EvtPolInt::ratint
void ratint()
Definition
EvtPolInt.cc:63
EvtPolInt::~EvtPolInt
virtual ~EvtPolInt()
Definition
EvtPolInt.hh:43
EvtPolInt::EvtPolInt
EvtPolInt(vector< double > xi, vector< double > yi, double x)
Definition
EvtPolInt.hh:32
EvtPolInt::splint
void splint()
Definition
EvtPolInt.cc:154
EvtPolInt::polynomial
void polynomial()
Definition
EvtPolInt.cc:23
8.0.0
BOSS_Gen
BesEvtGen
src
EvtGen
EvtGenBase
EvtPolInt.hh
Generated by
1.16.1