view splines.h @ 12:4b35f8ac5113

Fix: do not synthesize sinusoids above Nyqvist freq.
author wenx <xue.wen@eecs.qmul.ac.uk>
date Fri, 12 Aug 2011 18:10:46 +0100
parents 977f541d6683
children
line wrap: on
line source
/*
    Harmonic sinusoidal modelling and tools

    C++ code package for harmonic sinusoidal modelling and relevant signal processing.
    Centre for Digital Music, Queen Mary, University of London.
    This file copyright 2011 Wen Xue.

    This program is free software; you can redistribute it and/or
    modify it under the terms of the GNU General Public License as
    published by the Free Software Foundation; either version 2 of the
    License, or (at your option) any later version.
*/
#ifndef splinesH
#define splinesH

/**
  \file splines.h - spline interpolation routines
*/

//--cubic spline construction routines---------------------------------------
void CubicSpline(int N, double* a, double* b, double* c, double* d, double* x, double* y, int bordermode, int mode=0, double* data=0, double xinterval=1, double xstart=0, double xend=-1);
void CubicSpline(int N, double* a, double* b, double* c, double* d, double h, double* y, int bordermode, int mode=0, double* data=0, double xinterval=1, double xstart=0, double xend=-1);

//--smooth interpolation-----------------------------------------------------
void Smooth_Interpolate(double* y, int N, int P, double* x, double* xind);


#endif