{"ref":{"kind":"component","id":"hotel_seasonality","key":"sha256:6bb36b64b6651eff3ac85cc82bb2598328d59c1cfa3ea48cbf62334cf470840a"},"label":"Hotel Seasonality","description":"Normalize annual hotel occupancy and rooms-revenue seasonality monthly.","inputs":[{"label":"Occupancy Pct","name":"occupancy_pct","valueType":{"axes":[{"extent":12,"name":"season","variable":false}],"dtype":"f64","unit":"%"}},{"label":"RevPAR Pct","name":"revpar_pct","valueType":{"axes":[{"extent":12,"name":"season","variable":false}],"dtype":"f64","unit":"%"}}],"outputs":[{"label":"Occupancy Mix","name":"occupancy_mix","valueType":{"axes":[{"extent":121,"name":"month","variable":false}],"dtype":"f64","unit":"%"}},{"label":"RevPAR Mix","name":"revpar_mix","valueType":{"axes":[{"extent":121,"name":"month","variable":false}],"dtype":"f64","unit":"%"}}],"dependencies":[],"libraries":["hotel_operating"],"notes":{},"calculation":{"nodes":[{"id":"input-occupancy_pct","label":"Occupancy Pct","kind":"input"},{"id":"input-revpar_pct","label":"RevPAR Pct","kind":"input"},{"id":"step-value0","label":"Sum(Occupancy Pct)","kind":"step","rule":"Sum(Occupancy Pct)","sources":[{"node":"input-occupancy_pct"}]},{"id":"step-value1","label":"Sum(RevPAR Pct)","kind":"step","rule":"Sum(RevPAR Pct)","sources":[{"node":"input-revpar_pct"}]},{"id":"output-occupancy_mix","kind":"output","label":"Occupancy Mix","rule":"if (Sum(Occupancy Pct) > 0), then (Value at index((Occupancy Pct ÷ if (Sum(Occupancy Pct) > 0), then Sum(Occupancy Pct), otherwise 1, or 0 when the divisor is 0), fixed schedule of 121 values (month)) × fixed schedule of 121 values (month)), otherwise fixed schedule of 121 values (month)","sources":[{"node":"step-value0"},{"node":"input-occupancy_pct"}],"calls":[{"function":"hotel_seasonality_share","label":"Hotel seasonality share","bindings":[{"name":"profile","label":"Profile","value":"Occupancy Pct"},{"name":"total","label":"Total","value":"if (Sum(Occupancy Pct) > 0), then Sum(Occupancy Pct), otherwise 1"}],"rule":"(Occupancy Pct ÷ if (Sum(Occupancy Pct) > 0), then Sum(Occupancy Pct), otherwise 1, or 0 when the divisor is 0)"}]},{"id":"output-revpar_mix","kind":"output","label":"RevPAR Mix","rule":"if (Sum(RevPAR Pct) > 0), then (Value at index((RevPAR Pct ÷ if (Sum(RevPAR Pct) > 0), then Sum(RevPAR Pct), otherwise 1, or 0 when the divisor is 0), fixed schedule of 121 values (month)) × fixed schedule of 121 values (month)), otherwise fixed schedule of 121 values (month)","sources":[{"node":"step-value1"},{"node":"input-revpar_pct"}],"calls":[{"function":"hotel_seasonality_share","label":"Hotel seasonality share","bindings":[{"name":"profile","label":"Profile","value":"RevPAR Pct"},{"name":"total","label":"Total","value":"if (Sum(RevPAR Pct) > 0), then Sum(RevPAR Pct), otherwise 1"}],"rule":"(RevPAR Pct ÷ if (Sum(RevPAR Pct) > 0), then Sum(RevPAR Pct), otherwise 1, or 0 when the divisor is 0)"}]}],"topics":[{"label":"Hotel Seasonality","results":["output-occupancy_mix","output-revpar_mix"]}]},"usedBy":[{"kind":"recipe","id":"hotel","key":"sha256:bf0956eceaed37e652044e718371c50f6d742ef9dc4b93edf968a748eda841c3"}]}
