FireSTARR
Loading...
Searching...
No Matches
rng.h
1/* SPDX-License-Identifier: AGPL-3.0-or-later */
2#include "stdafx.h"
3#include "StartPoint.h"
4namespace fs::rng
5{
23template <class V>
24constexpr V same(const V value) noexcept
25{
26 return value;
27}
28void make_threshold(
29 vector<ThresholdSize>* thresholds,
30 mt19937_64* mt,
31 const Day start_day,
32 const Day last_date,
33 const ThresholdSize threshold_scenario_weight,
34 const ThresholdSize threshold_daily_weight,
35 const ThresholdSize threshold_hourly_weight,
36 ThresholdSize (*convert)(double value) = same
37);
38void make_threshold(
39 vector<ThresholdSize>* thresholds,
40 mt19937_64* mt,
41 const Day start_day,
42 const Day last_date,
43 ThresholdSize (*convert)(double value) = same
44);
45std::seed_seq make_seed(
46 const char* name,
47 const StartPoint& start_point,
48 const Day start_day,
49 const size_t salt,
50 const size_t base_salt
51);
52};