NAPISD
PAHdb website C++ backend
Loading...
Searching...
No Matches
MinMax.h
1#ifndef _MINMAX_H_
2#define _MINMAX_H_
3
4#include <array>
5#include <vector>
6
7#include <utility>
8
9#include <cmath>
10
11class MinMax {
12
13public:
14 enum : int { None, Nice, MinExtraRoom, MaxExtraRoom };
15
16 static std::array<double, 2> min_max(const std::vector<double> &values,
17 int flags = None);
18
19 static std::array<double, 2>
20 min_max(const std::vector<std::vector<double>> &values, int flags = None);
21
22 static std::array<double, 2>
23 min_max(const std::vector<std::vector<std::pair<double, double>>> &values,
24 int flags = None);
25
26private:
27 static void nice(std::array<double, 2> &min_max, int flags = None);
28};
29
30#endif /* _MINMAX_H_ */

Since FY2019 the NASA Ames PAH IR Spectroscopic Database is being supported through a directed Work Package at NASA Ames titled: "Laboratory Astrophysics - The NASA Ames PAH IR Spectroscopic Database".
Since FY2023 the NASA Ames PAH IR Spectroscopic Database is being supported through the Laboratory Astrophysics Rd 2 directed Work Package at NASA Ames.
© Copyright 2021-2025, Christiaan Boersma