Analysis Software
Documentation for
sPHENIX
simulation software
Home page
Related Pages
Modules
Namespaces
Classes
Files
Examples
External Links
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
linear_interpolation.cc
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file linear_interpolation.cc
1
/*******************************************************************************
2
* Copyright (c) The JETSCAPE Collaboration, 2018
3
*
4
* Modular, task-based framework for simulating all aspects of heavy-ion collisions
5
*
6
* For the list of contributors see AUTHORS.
7
*
8
* Report issues at https://github.com/JETSCAPE/JETSCAPE/issues
9
*
10
* or via email to bugs.jetscape@gmail.com
11
*
12
* Distributed under the GNU General Public License 3.0 (GPLv3 or later).
13
* See COPYING for details.
14
******************************************************************************/
15
16
#include "
LinearInterpolation.h
"
17
#include "
gtest/gtest.h
"
18
19
using namespace
Jetscape;
20
21
TEST
(LinearInterpolationTest, TEST_TRUE){
22
EXPECT_EQ
(0.5,
LinearInt
(0.0, 1.0, 0.0, 1.0, 0.5));
23
}
24
25
// test code when the type of y is int
26
TEST
(LinearInterpolationTest, TEST_INT){
27
EXPECT_EQ
(0,
LinearInt
(0.0, 1.0, 0, 1, 0.5));
28
}
JETSCAPE
blob
main
examples
unittests
linear_interpolation.cc
Built by
Jin Huang
. updated:
Sat Feb 17 2024 22:18:17
using
1.8.2 with
sPHENIX GitHub integration