00001 /*************************************************************************** 00002 * Copyright (C) 2008/2009 by Matthias Ihrke * 00003 * mihrke@uni-goettingen.de * 00004 * * 00005 * This program is free software; you can redistribute it and/or modify * 00006 * it under the terms of the GNU General Public License as published by * 00007 * the Free Software Foundation; either version 2 of the License, or * 00008 * (at your option) any later version. * 00009 * * 00010 * This program is distributed in the hope that it will be useful, * 00011 * but WITHOUT ANY WARRANTY; without even the implied warranty of * 00012 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * 00013 * GNU General Public License for more details. * 00014 * * 00015 * You should have received a copy of the GNU General Public License * 00016 * along with this program; if not, write to the * 00017 * Free Software Foundation, Inc., * 00018 * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * 00019 ***************************************************************************/ 00020 00024 #ifndef RECURRENCE_PLOT_H 00025 # define RECURRENCE_PLOT_H 00026 #include "mathadd.h" 00027 #include "nonlinear.h" 00028 #include "clustering.h" 00029 #include "definitions.h" 00030 #include "warping.h" 00031 #include <gsl/gsl_sort_double.h> 00032 00033 00034 /* optional args for recurrence plots */ 00035 #define RPLOT_NONE 0 00036 #define RPLOT_FAN 1 00037 /* #define RPLOT_DIST 2 */ 00038 00039 #ifdef __cplusplus 00040 extern "C" { 00041 #endif 00042 00043 /*----------------------------------------------------------- 00044 - Recurrence Plots - 00045 ---------------------------------------------------------*/ 00046 00047 Array* recplot( const Array *s1, const Array *s2, Array *out, double epsilon, 00048 OptArgList *optargs ); 00049 double* recplot_calculate_epsilons( Array *s1, Array *s2, double *eps, int fan ); 00050 00051 00052 /*** TODO: implement the LOS-strategies on Array's *****/ 00053 /**********************************************************************/ 00054 /**********************************************************************/ 00055 /* WarpPath* recplot_los_marwan ( const RecurrencePlot *R, int dx, int dy ); */ 00056 /* WarpPath* recplot_los_dtw ( const RecurrencePlot *R ); */ 00057 /* WarpPath* recplot_los_dtw_markers ( const RecurrencePlot *R, int **markers, int nmarkers ); */ 00058 /* WarpPath* recplot_los_disttransform( const RecurrencePlot *R ); */ 00059 /* WarpPath* recplot_los_dtw_noise ( const RecurrencePlot *R ); */ 00060 00061 #ifdef __cplusplus 00062 } 00063 #endif 00064 00065 00066 #endif