<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://www.bci2000.org/mediawiki/index.php?action=history&amp;feed=atom&amp;title=Programming_Reference%3AChoiceCombination</id>
	<title>Programming Reference:ChoiceCombination - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://www.bci2000.org/mediawiki/index.php?action=history&amp;feed=atom&amp;title=Programming_Reference%3AChoiceCombination"/>
	<link rel="alternate" type="text/html" href="https://www.bci2000.org/mediawiki/index.php?title=Programming_Reference:ChoiceCombination&amp;action=history"/>
	<updated>2026-06-27T04:39:23Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.6</generator>
	<entry>
		<id>https://www.bci2000.org/mediawiki/index.php?title=Programming_Reference:ChoiceCombination&amp;diff=10667&amp;oldid=prev</id>
		<title>Mellinger: /* Function */</title>
		<link rel="alternate" type="text/html" href="https://www.bci2000.org/mediawiki/index.php?title=Programming_Reference:ChoiceCombination&amp;diff=10667&amp;oldid=prev"/>
		<updated>2023-09-07T15:20:18Z</updated>

		<summary type="html">&lt;p&gt;&lt;span class=&quot;autocomment&quot;&gt;Function&lt;/span&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 15:20, 7 September 2023&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l1&quot;&gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==Function==&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==Function==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;The &amp;lt;tt&amp;gt;ChoiceCombination&amp;lt;/tt&amp;gt; class contains filters that are applied alternatively, depending on a user choice.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;The &amp;lt;tt&amp;gt;ChoiceCombination&amp;lt;/tt&amp;gt; class contains filters that are applied alternatively, depending on a user choice.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;To use a &amp;lt;tt&amp;gt;ChoiceCombination&amp;lt;/tt&amp;gt;, you need to derive a child class and define a constructor in which you add the desired filters, together with &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;the &lt;/del&gt;corresponding user &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;choice&lt;/del&gt;.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;To use a &amp;lt;tt&amp;gt;ChoiceCombination&amp;lt;/tt&amp;gt;, you need to derive a child class and define a constructor in which you add the desired filters, together with corresponding user &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;choices&lt;/ins&gt;.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;In addition, you need to specify a parameter name that will be displayed in the BCI2000 GUI, and allows to select one of the choices.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;In addition, you need to specify a parameter name that will be displayed in the BCI2000 GUI, and allows to select one of the choices.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key wikidb-bci_:diff:1.41:old-10666:rev-10667:php=table --&gt;
&lt;/table&gt;</summary>
		<author><name>Mellinger</name></author>
	</entry>
	<entry>
		<id>https://www.bci2000.org/mediawiki/index.php?title=Programming_Reference:ChoiceCombination&amp;diff=10666&amp;oldid=prev</id>
		<title>Mellinger: Created page with &quot;==Function== The &lt;tt&gt;ChoiceCombination&lt;/tt&gt; class contains filters that are applied alternatively, depending on a user choice. To use a &lt;tt&gt;ChoiceCombination&lt;/tt&gt;, you need to derive a child class and define a constructor in which you add the desired filters, together with the corresponding user choice. In addition, you need to specify a parameter name that will be displayed in the BCI2000 GUI, and allows to select one of the choices.   #include &quot;ChoiceCombination.h&quot;  #i...&quot;</title>
		<link rel="alternate" type="text/html" href="https://www.bci2000.org/mediawiki/index.php?title=Programming_Reference:ChoiceCombination&amp;diff=10666&amp;oldid=prev"/>
		<updated>2023-09-07T15:19:31Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;==Function== The &amp;lt;tt&amp;gt;ChoiceCombination&amp;lt;/tt&amp;gt; class contains filters that are applied alternatively, depending on a user choice. To use a &amp;lt;tt&amp;gt;ChoiceCombination&amp;lt;/tt&amp;gt;, you need to derive a child class and define a constructor in which you add the desired filters, together with the corresponding user choice. In addition, you need to specify a parameter name that will be displayed in the BCI2000 GUI, and allows to select one of the choices.   #include &amp;quot;ChoiceCombination.h&amp;quot;  #i...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;==Function==&lt;br /&gt;
The &amp;lt;tt&amp;gt;ChoiceCombination&amp;lt;/tt&amp;gt; class contains filters that are applied alternatively, depending on a user choice.&lt;br /&gt;
To use a &amp;lt;tt&amp;gt;ChoiceCombination&amp;lt;/tt&amp;gt;, you need to derive a child class and define a constructor in which you add the desired filters, together with the corresponding user choice.&lt;br /&gt;
In addition, you need to specify a parameter name that will be displayed in the BCI2000 GUI, and allows to select one of the choices.&lt;br /&gt;
&lt;br /&gt;
 #include &amp;quot;ChoiceCombination.h&amp;quot;&lt;br /&gt;
 #include &amp;quot;IdentityFilter.h&amp;quot;&lt;br /&gt;
 #include &amp;quot;Filter1.h&amp;quot;&lt;br /&gt;
 #include &amp;quot;Filter2.h&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 struct MyChoice : ChoiceCombination&lt;br /&gt;
 {&lt;br /&gt;
   MyChoice() : ChoiceCombination(&amp;quot;MyParameterName&amp;quot;)&lt;br /&gt;
   {&lt;br /&gt;
     AddChoice&amp;lt;IdentityFilter&amp;gt;(1);&lt;br /&gt;
     AddChoice&amp;lt;Filter1&amp;gt;(2);&lt;br /&gt;
     AddChoice&amp;lt;Filter2&amp;gt;(3);&lt;br /&gt;
   }&lt;br /&gt;
 };&lt;br /&gt;
&lt;br /&gt;
In the above example, we have used the [[Programming Reference:IdentityFilter|IdentityFilter]] to give the user an &amp;quot;neutral&amp;quot; choice, i.e. not processing anything but transferring the input signal to the output unchanged.&lt;br /&gt;
&lt;br /&gt;
==Parameters==&lt;br /&gt;
===&amp;lt;UserDefinedParameterName&amp;gt;===&lt;br /&gt;
An enumeration parameter whose value determines which of the filters is applied to the input.&lt;br /&gt;
&lt;br /&gt;
==States==&lt;br /&gt;
None.&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
[[Programming Reference:ParallelCombination]], [[Programming Reference:LinearCombination]], [[Programming Reference:IdentityFilter]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Filters]][[Category:Signal Processing]][[Category:Filter Combinations]]&lt;/div&gt;</summary>
		<author><name>Mellinger</name></author>
	</entry>
</feed>