00001 /*=========================================================================== 00002 NetEvo Foundation Library 00003 Copyright (C) 2009, 2010 Thomas E. Gorochowski <tgorochowski@me.com> 00004 Bristol Centre for Complexity Sciences, University of Bristol, Bristol, UK 00005 ---------------------------------------------------------------------------- 00006 NetEvo is a computing framework designed to allow researchers to investigate 00007 evolutionary aspects of dynamical complex networks. By providing tools to 00008 easily integrate each of these factors in a coherent way, it is hoped a 00009 greater understanding can be gained of key attributes and features displayed 00010 by complex systems. 00011 00012 NetEvo is open-source software released under the Open Source Initiative 00013 (OSI) approved Non-Profit Open Software License ("Non-Profit OSL") 3.0. 00014 Detailed information about this licence can be found in the COPYING file 00015 included as part of the source distribution. 00016 00017 This library is distributed in the hope that it will be useful, but 00018 WITHOUT ANY WARRANTY; without even the implied warranty of 00019 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 00020 ============================================================================*/ 00029 #ifndef NE_PER_H 00030 #define NE_PER_H 00031 00032 00033 #include "ne_std.h" 00034 #include "ne_sys.h" 00035 #include "ne_dyn_vec.h" 00036 00037 00039 typedef double ne_per_fn_t (ne_sys_t *sys, ne_dyn_vec_t *dyn, ne_real_t *params); 00040 00042 typedef enum { 00043 NE_PER_TOP = 1, 00044 NE_PER_DYN = 2, 00045 NE_PER_TOP_AND_DYN = 3 00046 } ne_per_fn_type_t; 00047 00049 typedef struct { 00050 ne_per_fn_type_t type; 00051 ne_per_fn_t *fn; 00052 ne_real_t *params; 00053 } ne_per_t; 00054 00055 00056 /* Generic free function for all performance measure types. */ 00057 void ne_per_free(ne_per_t* per); 00058 00059 00060 #endif /* NE_PER_H */