annotate xtract/xtract_delta.h @ 144:7fbca00c2c05

removed floatArray and intArray from Java SWIG bindings
author Jamie Bullock <jamie@jamiebullock.com>
date Tue, 08 Jan 2013 14:32:45 +0000
parents e4f704649c50
children baaa9d8b4d10
rev   line source
jamie@141 1 /*
jamie@141 2 * Copyright (C) 2012 Jamie Bullock
jamie@1 3 *
jamie@141 4 * Permission is hereby granted, free of charge, to any person obtaining a copy
jamie@141 5 * of this software and associated documentation files (the "Software"), to
jamie@141 6 * deal in the Software without restriction, including without limitation the
jamie@141 7 * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
jamie@141 8 * sell copies of the Software, and to permit persons to whom the Software is
jamie@141 9 * furnished to do so, subject to the following conditions:
jamie@1 10 *
jamie@141 11 * The above copyright notice and this permission notice shall be included in
jamie@141 12 * all copies or substantial portions of the Software.
jamie@1 13 *
jamie@141 14 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
jamie@141 15 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
jamie@141 16 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
jamie@141 17 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
jamie@141 18 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
jamie@141 19 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
jamie@141 20 * IN THE SOFTWARE.
jamie@141 21 *
jamie@1 22 */
jamie@1 23
jamie@116 24 /** \file xtract_delta.h: declares functions that scalar or vector value from 2 or more input vectors */
jamie@1 25
jamie@56 26 #ifndef XTRACT_DELTA_H
jamie@56 27 #define XTRACT_DELTA_H
jamie@1 28
jamie@1 29 #ifdef __cplusplus
jamie@1 30 extern "C" {
jamie@1 31 #endif
jamie@1 32
jamie@116 33 /**
jamie@116 34 * \defgroup delta `delta' extraction functions
jamie@116 35 *
jamie@116 36 * Functions that extract a scalar or vector value from 2 or more input vectors
jamie@116 37 *
jamie@116 38 * @{
jamie@116 39 */
jamie@116 40
jamie@1 41 #include "xtract_types.h"
jamie@1 42
jamie@116 43 /** \brief Extract flux
jamie@106 44 *
jamie@117 45 * \note FIX: don't be lazy -- take the lnorm of the difference vector!
jamie@106 46 * An alias for xtract_lnorm()
jamie@106 47 */
jamie@43 48 int xtract_flux(const float *data, const int N, const void *argv , float *result);
jamie@106 49
jamie@116 50 /** \brief Extract the L-norm of a vector
jamie@106 51 *
jamie@106 52 * \param *data: a pointer to the first element in an array of floats representing the difference between two subsequent frames of output from a vector-based feature e.g. the *result from xtract_difference_vector()
jamie@106 53 * \param N: the length of the array pointed to by *data
jamie@106 54 * \param *argv: a pointer to an array of floats, the first representing the "norm order". The second argument represents the filter type determining what values we consider from the difference vector as given in the enumeration xtract_lnorm_filter_types_ (libxtract.h)
jamie@106 55 * \param *result: a pointer to a float representing the flux
jamie@106 56 *
jamie@106 57 */
jamie@106 58 int xtract_lnorm(const float *data, const int N, const void *argv , float *result);
jamie@1 59 /*xtract_frame_tracker *xf */
jamie@1 60
jamie@2 61 /** \brief Extract attack Time */
jamie@43 62 int xtract_attack_time(const float *data, const int N, const void *argv , float *result);
jamie@1 63 /* xtract_amp_tracker *xa */
jamie@1 64
jamie@2 65 /** Extract temporal decrease */
jamie@43 66 int xtract_decay_time(const float *data, const int N, const void *argv, float *result);
jamie@1 67 /* xtract_amp_tracker *xa */
jamie@1 68
jamie@1 69
jamie@106 70 /** \brief Extract the difference between two vectors
jamie@106 71 *
jamie@106 72 * \param *data a pointer to an array representing two distinct vectors, e.g. two successive magnitude spectra.
jamie@106 73 * \param N the size of the array pointed to by *data
jamie@106 74 * \param *argv a pointer to NULL
jamie@106 75 * \param *result a pointer to an array of size N / 2 representing the difference between the two input vectors.
jamie@106 76 *
jamie@106 77 * */
jamie@106 78 int xtract_difference_vector(const float *data, const int N, const void *argv, float *result);
jamie@1 79 /*xtract_frame_tracker *xf */
jamie@1 80 /*float frames*/
jamie@1 81
jamie@116 82 /** @} */
jamie@116 83
jamie@1 84 #ifdef __cplusplus
jamie@1 85 }
jamie@1 86 #endif
jamie@1 87
jamie@1 88 #endif