annotate xtract/xtract_delta.h @ 95:432d97ee02ef

Minor modifications to MFCC init, mainly just code formatting
author Dan Stowell <danstowell@gmail.com>
date Wed, 03 Oct 2007 10:01:15 +0000
parents 450712b21565
children ca40a0dc29d6
rev   line source
jamie@1 1 /* libxtract feature extraction library
jamie@1 2 *
jamie@1 3 * Copyright (C) 2006 Jamie Bullock
jamie@1 4 *
jamie@1 5 * This program is free software; you can redistribute it and/or modify
jamie@1 6 * it under the terms of the GNU General Public License as published by
jamie@1 7 * the Free Software Foundation; either version 2 of the License, or
jamie@1 8 * (at your option) any later version.
jamie@1 9 *
jamie@1 10 * This program is distributed in the hope that it will be useful,
jamie@1 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
jamie@1 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
jamie@1 13 * GNU General Public License for more details.
jamie@1 14 *
jamie@1 15 * You should have received a copy of the GNU General Public License
jamie@1 16 * along with this program; if not, write to the Free Software
jamie@1 17 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
jamie@1 18 * USA.
jamie@1 19 */
jamie@1 20
jamie@2 21 /** \file xtract_delta.h: declares functions that extract a feature as a single value or vector from more than one input vector */
jamie@1 22
jamie@56 23 #ifndef XTRACT_DELTA_H
jamie@56 24 #define XTRACT_DELTA_H
jamie@1 25
jamie@1 26 #ifdef __cplusplus
jamie@1 27 extern "C" {
jamie@1 28 #endif
jamie@1 29
jamie@1 30 #include "xtract_types.h"
jamie@1 31
jamie@2 32 /* \brief Extract spectral flux as defined by Gaƫl Richard (2006)*/
jamie@43 33 int xtract_flux(const float *data, const int N, const void *argv , float *result);
jamie@1 34 /*xtract_frame_tracker *xf */
jamie@1 35
jamie@2 36 /** \brief Extract attack Time */
jamie@43 37 int xtract_attack_time(const float *data, const int N, const void *argv , float *result);
jamie@1 38 /* xtract_amp_tracker *xa */
jamie@1 39
jamie@2 40 /** Extract temporal decrease */
jamie@43 41 int xtract_decay_time(const float *data, const int N, const void *argv, float *result);
jamie@1 42 /* xtract_amp_tracker *xa */
jamie@1 43
jamie@1 44
jamie@2 45 /** \brief A generic function to calculate the delta of a feature over a given period (in frames) */
jamie@43 46 int xtract_delta_feature(const float *data, const int N, const void *argv, float *result);
jamie@1 47 /*xtract_frame_tracker *xf */
jamie@1 48 /*float frames*/
jamie@1 49
jamie@1 50
jamie@1 51
jamie@1 52 #ifdef __cplusplus
jamie@1 53 }
jamie@1 54 #endif
jamie@1 55
jamie@1 56 #endif