Right-aligned. Computes a single median for each unique value of h. Each median is over at least w samples.
rolling_median_by_h(x, h, w, name)
Array.
Array of horizon for each value in x.
Integer window size (number of elements).
String name for metric in result dataframe.
Dataframe with columns horizon and name, the rolling median of x.
For each h where there are fewer than w samples, we take samples from the previous h,