double ERPTier_getMean (ERPTier me, long pointNumber, const wchar_t *channelName, double tmin, double tmax) { return ERPTier_getMean (me, pointNumber, ERPTier_getChannelNumber (me, channelName), tmin, tmax); }
OK DO INTEGER_ONE (ERPTier) long result = ERPTier_getChannelNumber (me, channelName); INTEGER_ONE_END (U"") } FORM (REAL_ERPTier_getMean, U"ERPTier: Get mean", U"ERPTier: Get mean...") { NATURALVAR (pointNumber, U"Point number", U"1") SENTENCEVAR (channelName, U"Channel name", U"Cz") REALVAR (fromTime, U"left Time range (s)", U"0.0") REALVAR (toTime, U"right Time range (s)", U"0.0 (= all)") OK DO NUMBER_ONE (ERPTier) double result = ERPTier_getMean (me, pointNumber, channelName, fromTime, toTime); NUMBER_ONE_END (U" Volt") } // MARK: Modify FORM (MODIFY_ERPTier_rejectArtefacts, U"Reject artefacts", nullptr) { POSITIVEVAR (threshold, U"Threshold (V)", U"75e-6") OK DO MODIFY_EACH (ERPTier) ERPTier_rejectArtefacts (me, threshold); MODIFY_EACH_END } FORM (MODIFY_ERPTier_removeEventsBetween, U"Remove events", U"ERPTier: Remove events between...") {