pub struct ThetaCase {
pub values: &'static [f64],
pub period: usize,
pub seasonal: bool,
pub alpha: f64,
pub drift: f64,
pub sigma2: f64,
pub level: f64,
pub factors: &'static [f64],
pub mean: &'static [f64],
pub intervals: &'static [[f64; 4]],
}
pub const NONSEASONAL: ThetaCase = ThetaCase {
values: &[
101.50624825273677,
100.06428686913125,
100.96662246173743,
100.38805899321315,
103.68920770727887,
105.58897435572187,
104.16096452549914,
103.04633190436336,
104.64857403615864,
106.91018643824788,
108.24547641502157,
105.35094185315005,
107.62933005258472,
108.29846353124059,
109.3630335381477,
108.41617371312492,
110.67735280312233,
109.13684388209484,
111.27926844305635,
114.16809881557272,
112.48375422170888,
115.6182297261069,
111.67812706442936,
114.72344518717057,
114.49854896390744,
116.16924339168794,
116.82007559700732,
115.85253533904582,
115.20945656118282,
113.84900629612744,
114.20722707264386,
111.74938499201427,
115.08638486938058,
114.34168047621945,
114.72786722759017,
113.52267874755196,
114.83744023017822,
116.50602093760902,
118.9005541427361,
117.4987596698855,
116.52300448689613,
115.92613461572404,
118.16052017141573,
118.29431474064437,
120.55670243049465,
120.97374678396581,
120.920568550004,
120.96858514896678,
121.27322956413823,
121.61909349063146,
120.25304879647457,
122.75678048636006,
122.18495143508218,
122.56201056580677,
124.6845095216159,
121.88910451103644,
123.68978783029468,
124.50421731826631,
123.69943245303924,
123.90080098744524,
127.11071366629199,
127.1352115533005,
129.6807351242831,
128.21238095338038,
129.81571069480898,
130.59333407212142,
130.6245770094836,
133.676837948156,
134.93423492368555,
134.16261569120647,
134.1785644206501,
132.1462902899796,
133.80028888083896,
133.7852418443341,
133.9415199192368,
134.894777944746,
136.44992783491637,
136.3774783328024,
135.7928807094223,
135.91948645026827,
],
period: 1,
seasonal: false,
alpha: 0.7552762806907232,
drift: 0.2136124152450542,
sigma2: 2.665673930872948,
level: 135.91811391461337,
factors: &[],
mean: &[
136.20094076977384,
136.4145531850189,
136.62816560026394,
136.841778015509,
137.05539043075407,
137.26900284599913,
137.48261526124418,
137.69622767648923,
137.90984009173428,
138.12345250697933,
],
intervals: &[
[
134.1085654059355,
138.29331613361217,
133.0009287956015,
139.40095274394616,
],
[
133.79244513011494,
139.03666123992284,
132.4043849722399,
140.42472139779787,
],
[
133.56665181783754,
139.68967938269034,
131.945984318562,
141.31034688196587,
],
[
133.39645036369106,
140.28710566732693,
131.57260407506476,
142.11095195595323,
],
[
133.26491570893148,
140.84586515257666,
131.2583595981128,
142.85242126339534,
],
[
133.1622870529145,
141.37571863908374,
130.988323031319,
143.54968266067925,
],
[
133.08232770319015,
141.8829028192982,
130.75295617667928,
144.21227434580908,
],
[
133.020765498056,
142.37168985492247,
130.54572532669562,
144.84673002628284,
],
[
132.97452221237188,
142.84515797109668,
130.36192274227022,
145.45775744119834,
],
[
132.94129286463436,
143.3056121493243,
130.19802325839743,
146.04888175556124,
],
],
};
pub const MONTHLY: ThetaCase = ThetaCase {
values: &[
104.29342790735596,
110.69350835902395,
116.51139275551887,
115.89646038495847,
113.23905665950892,
105.87396306784336,
99.05291238904398,
90.89949205895495,
89.46618729785514,
91.31381920924257,
97.21910928888687,
105.51158349567034,
113.56081264822096,
121.80356513027108,
126.1659725413128,
124.11666228527564,
120.53624243875554,
112.34629151500748,
100.65434587101994,
95.23624897624532,
91.28513796236545,
89.75144161457924,
94.62671724348453,
103.44504307363523,
113.15755991804993,
121.67071550999903,
124.00409059559816,
122.3458711489923,
119.6599554320003,
110.1701358706367,
103.37298973692822,
95.4312969524842,
95.0799705582739,
93.71936193913115,
98.60567208849962,
104.27706441783877,
113.52954053464832,
119.3474111952052,
121.55064664356502,
123.31768155910547,
117.84163104494544,
109.49831241353168,
103.20121189581661,
95.25103904647375,
91.54799775122667,
93.17431893831802,
94.77529745289975,
104.85643312290408,
112.71422502433543,
121.41602033546909,
124.74835599198846,
125.00316382667378,
119.53882811979418,
116.152565790237,
106.99244425711944,
99.05450587918418,
94.35275116312067,
97.0104361836463,
99.53260175395941,
107.03125320262528,
115.68180277878827,
122.60215880872441,
128.33808358531033,
129.44179029405913,
123.77479908063323,
116.26966427186375,
109.92335532013301,
103.18410073061271,
98.41557273339656,
98.66743708704938,
104.73795705176335,
112.30537840980288,
122.6740326932436,
128.20569147946284,
132.49825223716732,
134.9580058258229,
130.33031527302487,
123.00553695485002,
114.55557938264305,
104.51219918649848,
99.33736120525704,
102.37216873663563,
108.37942369208453,
117.56592558188748,
122.61094842516064,
131.4040194204736,
136.2051498807849,
135.56422992612482,
132.07310739257764,
125.14788569708159,
115.9760451075447,
110.99617505517374,
105.24664848105468,
106.5447098185131,
111.65419089164911,
119.22414651806396,
127.88373790070395,
136.47382928204345,
139.48827370538373,
138.88639092671724,
136.76365142467455,
128.5971482487007,
118.16806710958308,
110.95474417862376,
107.60662574575906,
107.62017344273886,
113.39055494209232,
121.37103733822933,
131.07286619514997,
141.59825905106527,
144.862796239641,
146.0345562842766,
138.42849084208427,
130.25156182427216,
119.55370861784596,
111.09891853255358,
108.12093533763547,
109.14343722004229,
113.88212344552696,
121.68516766969714,
],
period: 12,
seasonal: true,
alpha: 0.6946510207231331,
drift: 0.10611055041409775,
sigma2: 2.0786788325978716,
level: 125.8545424597245,
factors: &[
1.0428912619454884,
1.1105902352013175,
1.141160024252127,
1.141084291991097,
1.1001556400441417,
1.0334101952704617,
0.9569679316062161,
0.8891702173620775,
0.8548832102060927,
0.8604244255069611,
0.9000251414576245,
0.9692374251563959,
],
mean: &[
131.4119081615872,
140.06031807907092,
144.0366674385818,
144.1481896314416,
139.0945900971245,
130.76550320777335,
121.19420798765431,
112.70238735087462,
108.44721891948907,
109.24145643790844,
114.36475622998158,
123.26229681542137,
132.73984935151228,
141.47446217277172,
145.48973685798927,
145.60116261894626,
140.4954475431996,
132.0813719032576,
122.41274071507081,
113.83459144498796,
109.53576445518594,
110.33705775047179,
115.51078218774072,
124.4964526154048,
],
intervals: &[
[
129.5642152942599,
133.25960102891452,
128.58610577343737,
134.23771054973705,
],
[
137.81057461836593,
142.31006153977592,
136.61963236966486,
143.501003788477,
],
[
141.44654729735328,
146.6267875798103,
140.07542051810975,
147.99791435905382,
],
[
141.25749783655752,
147.03888142632567,
139.72725803516158,
148.5691212277216,
],
[
135.9317629187882,
142.2574172754608,
134.2574633473871,
143.9317168468619,
],
[
127.35216869925598,
134.17883771629073,
125.54525855765752,
135.98574785788918,
],
[
117.54753427397384,
124.84088170133478,
115.61710181858231,
126.7713141567263,
],
[
108.83643263294778,
116.56834206880146,
106.7899198257935,
118.61485487595573,
],
[
104.37377043103689,
112.52066740794126,
102.21741705673479,
114.67702078224336,
],
[
104.97058307346808,
113.5123298023488,
102.70971928281604,
115.77319359300084,
],
[
109.90518943464161,
118.82432302532155,
107.5444373754666,
121.18507508449656,
],
[
118.62170281151288,
127.90289081932985,
116.16512073677639,
130.35947289406636,
],
[
127.92502958166376,
137.55466912136077,
125.37621795760558,
140.10348074541898,
],
[
136.49150460490736,
146.45741974063608,
133.85368620707334,
149.0952381384701,
],
[
140.34413263397929,
150.63534108199926,
137.62021429728685,
153.3592594186917,
],
[
140.29789763054882,
150.9044276073437,
137.49051872666234,
153.71180651123018,
],
[
135.03907546606126,
145.95181962033791,
132.1506465652565,
148.84024852114268,
],
[
126.47607325365941,
137.6866705528558,
123.50880738757631,
140.6539364189389,
],
[
116.66237119144887,
128.16311023869275,
113.61830944354699,
131.20717198659463,
],
[
107.94272193139446,
119.72646095858147,
104.82375461350588,
122.84542827647005,
],
[
103.50571444940445,
115.56581446096743,
100.31359879750921,
118.75793011286267,
],
[
104.17192354437067,
116.5021919565729,
100.90829863637465,
119.76581686456892,
],
[
109.21346081383493,
121.8081035616465,
105.87986024611396,
125.14170412936747,
],
[
118.06966234395023,
130.92324288685938,
114.66752508185641,
134.3253801489532,
],
],
};
pub const QUARTERLY_WEAK: ThetaCase = ThetaCase {
values: &[
102.01149514960942,
98.684810260854,
97.64917943907652,
99.45283371335525,
97.72021559189143,
99.06510428674149,
99.08733288359149,
98.37708729232241,
97.91953656120052,
97.15470007644657,
98.71402085308776,
98.01863025124271,
97.50562322880099,
99.03649878147922,
97.86139042366375,
98.63233188695426,
101.73928362421276,
101.17284444716127,
100.16336726762508,
101.60514419638234,
100.65530666676926,
101.63295757490317,
101.1014392214516,
101.66444394342861,
102.72088150133176,
100.74023382694124,
99.36966891879075,
100.75872607261023,
99.32606015561096,
100.5793927370977,
102.15121930423715,
102.1547315884728,
102.08157799576388,
103.11277710275354,
102.5021262612485,
103.9399836993339,
103.60253651219432,
103.65734245492308,
105.61193157085087,
106.41979682977266,
],
period: 4,
seasonal: false,
alpha: 0.6546950948203115,
drift: 0.07755223421644171,
sigma2: 1.6318325069977075,
level: 105.90366403388919,
factors: &[],
mean: &[
106.02211953299098,
106.09967176720743,
106.17722400142387,
106.2547762356403,
106.33232846985675,
106.4098807040732,
106.48743293828964,
106.56498517250608,
],
intervals: &[
[
104.38502455733966,
107.65921450864231,
103.51839882614253,
108.52584023983944,
],
[
104.1429318713706,
108.05641166304424,
103.10709634062046,
109.09224719379439,
],
[
103.94617445454773,
108.4082735483,
102.76512816605778,
109.58931983678995,
],
[
103.77963318093158,
108.72991929034903,
102.46937159470257,
110.04018087657805,
],
[
103.63509206903284,
109.02956487068066,
102.20726136718515,
110.45739557252834,
],
[
103.5074962942153,
109.3122651139311,
101.97106679634359,
110.84869461180281,
],
[
103.39347328709138,
109.5813925894879,
101.75562998240018,
111.2192358941791,
],
[
103.29063983581669,
109.83933050919548,
101.5573061173674,
111.57266422764476,
],
],
};
pub const ALL: &[&ThetaCase] = &[&NONSEASONAL, &MONTHLY, &QUARTERLY_WEAK];