ERP.h 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. #ifndef _ERP_h_
  2. #define _ERP_h_
  3. /* ERP.h
  4. *
  5. * Copyright (C) 2011,2012,2014-2018 Paul Boersma
  6. *
  7. * This code is free software; you can redistribute it and/or modify
  8. * it under the terms of the GNU General Public License as published by
  9. * the Free Software Foundation; either version 2 of the License, or (at
  10. * your option) any later version.
  11. *
  12. * This code is distributed in the hope that it will be useful, but
  13. * WITHOUT ANY WARRANTY; without even the implied warranty of
  14. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  15. * See the GNU General Public License for more details.
  16. *
  17. * You should have received a copy of the GNU General Public License
  18. * along with this work. If not, see <http://www.gnu.org/licenses/>.
  19. */
  20. #include "Sound.h"
  21. #include "ERP_def.h"
  22. /**
  23. Look up the channel number from its name.
  24. */
  25. integer ERP_getChannelNumber (ERP me, conststring32 channelName);
  26. /**
  27. * Draw the scalp distribution.
  28. * @param tmin: the time window.
  29. * @param tmax: the time window.
  30. */
  31. void ERP_drawScalp (ERP me,
  32. Graphics graphics, double tmin, double tmax, double vmin, double vmax,
  33. enum kGraphics_colourScale colourScale, bool garnish);
  34. void ERP_drawScalp_garnish (Graphics graphics, double vmin, double vmax, enum kGraphics_colourScale colourScale);
  35. void ERP_drawChannel_number (ERP me, Graphics graphics, integer channelNumber, double tmin, double tmax, double vmin, double vmax, bool garnish);
  36. void ERP_drawChannel_name (ERP me, Graphics graphics, conststring32 channelName, double tmin, double tmax, double vmin, double vmax, bool garnish);
  37. autoTable ERP_tabulate (ERP me, bool includeSampleNumbers, bool includeTime, int timeDecimals, int voltageDecimals, int units);
  38. /**
  39. Extract the Sound part from the ERP. The channel names are lost.
  40. */
  41. autoSound ERP_downto_Sound (ERP me);
  42. /* End of file ERP.h */
  43. #endif