STIR  6.2.0
integrate_discrete_function.h
Go to the documentation of this file.
1 //
2 //
3 /*
4  Copyright (C) 2004 - 2009, Hammersmith Imanet Ltd
5  This file is part of STIR.
6 
7  SPDX-License-Identifier: Apache-2.0
8 
9  See STIR/LICENSE.txt for details
10 */
20 #ifndef __stir_integrate_discrete_function_H__
21 #define __stir_integrate_discrete_function_H__
22 
23 #include "stir/common.h"
24 #include <vector>
25 #include <iostream>
26 #include <cstring>
27 #include <iomanip>
28 #include <fstream>
29 
30 START_NAMESPACE_STIR
43 template <typename elemT>
44 inline elemT integrate_discrete_function(const std::vector<elemT>& coordinates,
45  const std::vector<elemT>& values,
46  const int interpolation_order = 1);
47 
48 END_NAMESPACE_STIR
49 
50 #include "stir/numerics/integrate_discrete_function.inl"
51 
52 #endif //__integrate_discrete_function_H__
elemT integrate_discrete_function(const std::vector< elemT > &coordinates, const std::vector< elemT > &values, const int interpolation_order=1)
numerical integration of a 1D functionThis is a simple integral implementation using rectangular (=0)...
Definition: integrate_discrete_function.inl:26
basic configuration include file