jamie@86: /* libxtract feature extraction library jamie@86: * jamie@86: * Copyright (C) 2006 Jamie Bullock jamie@86: * jamie@86: * This program is free software; you can redistribute it and/or modify jamie@86: * it under the terms of the GNU General Public License as published by jamie@86: * the Free Software Foundation; either version 2 of the License, or jamie@86: * (at your option) any later version. jamie@86: * jamie@86: * This program is distributed in the hope that it will be useful, jamie@86: * but WITHOUT ANY WARRANTY; without even the implied warranty of jamie@86: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the jamie@86: * GNU General Public License for more details. jamie@86: * jamie@86: * You should have received a copy of the GNU General Public License jamie@86: * along with this program; if not, write to the Free Software jamie@86: * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, jamie@86: * USA. jamie@86: */ jamie@29: jamie@29: #include "xtract/libxtract.h" jamie@29: #include jamie@29: jamie@86: int main(void) { jamie@29: jamie@29: float mean = 0, vector[] = {1, 2, 3}; jamie@29: jamie@56: xtract[XTRACT_MEAN]((void *)&vector, 3, NULL, (void *)&mean); jamie@29: jamie@29: printf("\nThe mean of [1, 2, 3] = %.1f\n\n", mean); jamie@29: jamie@29: return 0; jamie@29: jamie@29: }