FIR.cpp
FIR::FIR(int taps, double coefficients[]){
    num_taps = taps;
    current = 0;
    buffer.reserve(taps);
    buffer.assign(taps,0);
    coeff.reserve(taps);
    coeff.insert(coeff.begin(), coefficients, coefficients + taps);
}
// Constructor initialising variables for the number of taps,
// the coefficents vector, the buffer vector
// and a position variable for the ring buffer
Constructor initialising variables for the number of taps,
the coefficents vector, the buffer vector
and a position variable for the ring buffer
Constructor initialising variables for the number of taps the coefficents vector the buffer vector and a position variable for the ring buffer
FIR::FIR(int taps, double coefficients[]){
    num_taps = taps;
    current = 0;
    buffer.reserve(taps);
    buffer.assign(taps,0);
    coeff.reserve(taps);
    coeff.insert(coeff.begin(), coefficients, coefficients + taps);
}
FIR :: FIR ( int taps , double coefficients [ ] ) { num_taps = taps ; current = 0 ; buffer . reserve ( taps ) ; buffer . assign ( taps , 0 ) ; coeff . reserve ( taps ) ; coeff . insert ( coeff . begin ( ) , coefficients , coefficients + taps ) ; }
Constructor initialising variables for the number of taps,
the coefficents vector, the buffer vector
and a position variable for the ring buffer
Constructor initialising variables for the number of taps the coefficents vector the buffer vector and a position variable for the ring buffer