Linear resampling datapoints captured at fluctuating time intervals, to flxed time intervals, in swift
问题 I want to linearly interpolate some metrics that are captured at times that fluctuate, to fixed timing intervals. let original_times:[Double] = [0.0,1.3,2.2,3.4,4.2,5.5,6.6,7.2,8.4,9.5,10.0] let metric_1:[Double] = [4,3,6,7,4,5,7,4,2,7,2] let wanted_times:[Double] = [0,1,2,3,4,5,6,7,8,9,10] //linearly resample metric_1 (with corresponding sampling times 'original_times') to fixed time interval times 'wanted_times' Accelerate offers vDSP_vlint but I'm struggling to figure out how to implement