discrets function

Time series discretisation