params.h 2.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. #ifndef __PARAMS_H__
  2. #define __PARAMS_H__
  3. /*
  4. * params.h
  5. *
  6. * This file is part of the refactored Izhikevich polychronization model application.
  7. *
  8. * Copyright (C) 2018, Author: G. Trensch
  9. *
  10. * The refactored Izhikevich polychronization model application is free software:
  11. * you can redistribute it and/or modify
  12. * it under the terms of the GNU General Public License as published by
  13. * the Free Software Foundation, either version 2 of the License, or
  14. * (at your option) any later version.
  15. *
  16. * It is distributed in the hope that it will be useful,
  17. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  18. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  19. * GNU General Public License for more details.
  20. *
  21. * You should have received a copy of the GNU General Public License
  22. * along with this application. If not, see <http://www.gnu.org/licenses/>.
  23. *
  24. */
  25. // = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
  26. // = S I M U L A T I O N S E T U P
  27. // = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
  28. #include "params_create_5_selected_states.h"
  29. // #include "params_simulate_selected_state_1.h"
  30. // #include "params_simulate_selected_state_2.h"
  31. // #include "params_simulate_selected_state_3.h"
  32. // #include "params_simulate_selected_state_4.h"
  33. // #include "params_simulate_selected_state_5.h"
  34. // = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
  35. // = S O U R C E C O D E V E R S I O N A N D D E B U G
  36. // = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
  37. #define __DEBUG__ false // print connection, weight and delay matrix
  38. #define __RUN_REFACTORED_VERSION__ true // run the refactored version of poly_spnet.cpp
  39. // available for download at
  40. // https://www.izhikevich.org/publications/spnet.htm
  41. // set to false to run the original version
  42. #define LOG_MIN_MAX_V_U true
  43. // = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
  44. // = O D E S O L V E R P A R A M E T E R S
  45. // =
  46. // = The parameters do also apply to the poly_spnet.cpp source.
  47. // = It has been modified to be able to run with the refined ODE solver to
  48. // = test for the number of polychronous groups.
  49. // = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
  50. // #define ODE_SOLVER_REFINEMENT false // corresponds to Iteration I, Trensch et al., Gutzen et al.
  51. #define ODE_SOLVER_REFINEMENT true // corresponds to Iteration II and III, Trensch et al., Gutzen et al.
  52. #define ODE_SOLVER_STEPS (int)(16)
  53. #endif // __PARAMS_H__