[added]Solution for the segmented and smoothed cte