/*
 * interpolation.h
 *
 *  Created on: 2023/09/14
 *      Author: BestTechnology
 */

#ifndef INTERPOLATION_H_
#define INTERPOLATION_H_

#include <stdint.h>

// digital interpolators
//-----------------------------
#define INTERP(xi,xj,yi,yj,x) (yi+(((yj-yi)*(x-xi))/(xj-xi)))

int32_t interp1dim (const int32_t x, const int32_t *ar, const int32_t w);

#endif /* INTERPOLATION_H_ */
