| 1 | #cxx . . $ `<file>/EEG/EEG.h`/ifndef _EEG_h_ |
| 2 | #define _EEG_h_cxx . . $ `EEG/EEG.h:2:9`! |
| 3 | /* EEG.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 | |
| 21 | #include "Sound.h"cxx . . $ `<file>/fon/Sound.h`/ |
| 22 | #include "TextGrid.h"cxx . . $ `<file>/fon/TextGrid.h`/ |
| 23 | #include "ICA.h"cxx . . $ `<file>/dwtools/ICA.h`/ |
| 24 | |
| 25 | #include "EEG_def.h"cxx . . $ `<file>/EEG/EEG_def.h`/ |
| 26 | |
| 27 | autoEEGcxx . . $ autoEEG# EEG_createcxx . . $ EEG_create(52dd326870d969b2). (double tmin, double tmax); |
| 28 | |
| 29 | autoEEGcxx . . $ autoEEG# EEG_readFromBdfFilecxx . . $ EEG_readFromBdfFile(8d96c416b6185d45). (MelderFilecxx . . $ MelderFile# file); |
| 30 | |
| 31 | autoEEGcxx . . $ autoEEG# EEGs_concatenatecxx . . $ EEGs_concatenate(9f4d0b500bca4be5). (OrderedOfcxx . . $ OrderedOf#<structEEGcxx . . $ structEEG#>* me); |
| 32 | |
| 33 | void EEG_initcxx . . $ EEG_init(aa0fc7facf23d90f). (EEGcxx . . $ EEG# me, double tmin, double tmax); |
| 34 | integercxx . . $ integer# EEG_getChannelNumbercxx . . $ EEG_getChannelNumber(7108ce9be493d935). (EEGcxx . . $ EEG# me, conststring32cxx . . $ conststring32# channelName); |
| 35 | void EEG_setChannelNamecxx . . $ EEG_setChannelName(4799c046184655e2). (EEGcxx . . $ EEG# me, integercxx . . $ integer# channelNumber, conststring32cxx . . $ conststring32# newName); |
| 36 | static inline integercxx . . $ integer# EEG_getNumberOfCapElectrodescxx . . $ EEG_getNumberOfCapElectrodes(b9950d46b81b5d3). (EEGcxx . . $ EEG# me) { |
| 37 | return (mycxx . . $ `melder/melder.h:44:9`! numberOfChannelscxx . . $ structEEG#numberOfChannels. - 1) & ~ 15L; // BUG |
| 38 | } |
| 39 | static inline integercxx . . $ integer# EEG_getNumberOfExtraSensorscxx . . $ EEG_getNumberOfExtraSensors(b9950d46b81b5d3). (EEGcxx . . $ EEG# me) { |
| 40 | return mycxx . . $ `melder/melder.h:44:9`! numberOfChannelscxx . . $ structEEG#numberOfChannels. == 1 ? 0 : mycxx . . $ `melder/melder.h:44:9`! numberOfChannelscxx . . $ structEEG#numberOfChannels. & 1 ? 1 : 8; // BUG |
| 41 | } |
| 42 | static inline integercxx . . $ integer# EEG_getNumberOfExternalElectrodescxx . . $ EEG_getNumberOfExternalElectrodes(b9950d46b81b5d3). (EEGcxx . . $ EEG# me) { |
| 43 | return mycxx . . $ `melder/melder.h:44:9`! numberOfChannelscxx . . $ structEEG#numberOfChannels. - EEG_getNumberOfCapElectrodescxx . . $ EEG_getNumberOfCapElectrodes(b9950d46b81b5d3). (me) - EEG_getNumberOfExtraSensorscxx . . $ EEG_getNumberOfExtraSensors(b9950d46b81b5d3). (me); |
| 44 | } |
| 45 | void EEG_setExternalElectrodeNamescxx . . $ EEG_setExternalElectrodeNames(21395b8ca163c90c). (EEGcxx . . $ EEG# me, conststring32cxx . . $ conststring32# nameExg1, conststring32cxx . . $ conststring32# nameExg2, conststring32cxx . . $ conststring32# nameExg3, conststring32cxx . . $ conststring32# nameExg4, |
| 46 | conststring32cxx . . $ conststring32# nameExg5, conststring32cxx . . $ conststring32# nameExg6, conststring32cxx . . $ conststring32# nameExg7, conststring32cxx . . $ conststring32# nameExg8); |
| 47 | void EEG_detrendcxx . . $ EEG_detrend(57b464af816f5c39). (EEGcxx . . $ EEG# me); |
| 48 | void EEG_filtercxx . . $ EEG_filter(da35f61caf0fce80). (EEGcxx . . $ EEG# me, double lowFrequency, double lowWidth, double highFrequency, double highWidth, bool doNotch50Hz); |
| 49 | void EEG_subtractReferencecxx . . $ EEG_subtractReference(4892dd913d6a11a1). (EEGcxx . . $ EEG# me, conststring32cxx . . $ conststring32# channelName1, conststring32cxx . . $ conststring32# channelName2); |
| 50 | void EEG_subtractMeanChannelcxx . . $ EEG_subtractMeanChannel(40e2387e7bf13946). (EEGcxx . . $ EEG# me, integercxx . . $ integer# fromChannel, integercxx . . $ integer# toChannel); |
| 51 | void EEG_setChannelToZerocxx . . $ EEG_setChannelToZero(d035137015e80e96). (EEGcxx . . $ EEG# me, integercxx . . $ integer# channelNumber); |
| 52 | void EEG_setChannelToZerocxx . . $ EEG_setChannelToZero(40248b976b4bbb29). (EEGcxx . . $ EEG# me, conststring32cxx . . $ conststring32# channelName); |
| 53 | void EEG_removeTriggerscxx . . $ EEG_removeTriggers(17cc3c7f6d587a17). (EEGcxx . . $ EEG# me, kMelder_stringcxx . . $ kMelder_string# which, conststring32cxx . . $ conststring32# criterion); |
| 54 | autoEEGcxx . . $ autoEEG# EEG_extractChannelcxx . . $ EEG_extractChannel(e9068b33f4047558). (EEGcxx . . $ EEG# me, integercxx . . $ integer# channelNumber); |
| 55 | autoEEGcxx . . $ autoEEG# EEG_extractChannelcxx . . $ EEG_extractChannel(64f481847b6b83b1). (EEGcxx . . $ EEG# me, conststring32cxx . . $ conststring32# channelName); |
| 56 | autoEEGcxx . . $ autoEEG# EEG_extractChannelscxx . . $ EEG_extractChannels(c87bfaa8370dba36). (EEGcxx . . $ EEG# me, constINTVECVUcxx . . $ constINTVECVU# const& channelNumbers); |
| 57 | void EEG_removeChannelcxx . . $ EEG_removeChannel(d035137015e80e96). (EEGcxx . . $ EEG# me, integercxx . . $ integer# channelNumber); |
| 58 | void EEG_removeChannelcxx . . $ EEG_removeChannel(40248b976b4bbb29). (EEGcxx . . $ EEG# me, conststring32cxx . . $ conststring32# channelName); |
| 59 | static inline autoSoundcxx . . $ autoSound# EEG_extractSoundcxx . . $ EEG_extractSound(93716374826ed6a0). (EEGcxx . . $ EEG# me) { return Data_copycxx . . $ Data_copy(97a542a26794c80e). (mycxx . . $ `melder/melder.h:44:9`! soundcxx . . $ structEEG#sound..getcxx . . $ autoSomeThing#get(34d6acfd341ba7ab).()); } |
| 60 | static inline autoTextGridcxx . . $ autoTextGrid# EEG_extractTextGridcxx . . $ EEG_extractTextGrid(bd25664d137813e0). (EEGcxx . . $ EEG# me) { return Data_copycxx . . $ Data_copy(97a542a26794c80e). (mycxx . . $ `melder/melder.h:44:9`! textgridcxx . . $ structEEG#textgrid..getcxx . . $ autoSomeThing#get(34d6acfd341ba7ab).()); } |
| 61 | autoEEGcxx . . $ autoEEG# EEG_extractPartcxx . . $ EEG_extractPart(4b0b976428c6cf0). (EEGcxx . . $ EEG# me, double tmin, double tmax, bool preserveTimes); |
| 62 | void EEG_replaceTextGridcxx . . $ EEG_replaceTextGrid(db5d329a19c4fedf). (EEGcxx . . $ EEG# me, TextGridcxx . . $ TextGrid# textgrid); |
| 63 | |
| 64 | autoMixingMatrixcxx . . $ autoMixingMatrix# EEG_to_MixingMatrixcxx . . $ EEG_to_MixingMatrix(ac68ffee569724b8). (EEGcxx . . $ EEG# me, |
| 65 | double startTime, double endTime, integercxx . . $ integer# numberOfCrossCorrelations, double lagStep, |
| 66 | integercxx . . $ integer# maxNumberOfIterations, double tol, int method); |
| 67 | |
| 68 | autoEEGcxx . . $ autoEEG# EEG_MixingMatrix_to_EEG_unmixcxx . . $ EEG_MixingMatrix_to_EEG_unmix(84d603f36887c36a). (EEGcxx . . $ EEG# me, MixingMatrixcxx . . $ MixingMatrix# you); |
| 69 | autoEEGcxx . . $ autoEEG# EEG_MixingMatrix_to_EEG_mixcxx . . $ EEG_MixingMatrix_to_EEG_mix(84d603f36887c36a). (EEGcxx . . $ EEG# me, MixingMatrixcxx . . $ MixingMatrix# you); |
| 70 | |
| 71 | /* End of file EEG.h */ |
| 72 | #endif |