|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.webkitchen.eeg.analysis.DualBandFilter
public class DualBandFilter
Listens for new raw sample values, then filters the raw data into two frequency bands as described by our two filter specifications, and notifies listeners of the filtered values. Objects can add themselves as listeners/observers to receive copies of all new filtered samples.
IDualBandSampleListener| Constructor Summary | |
|---|---|
DualBandFilter(FilterSpecification spec1,
FilterSpecification spec2)
Creates a new DualBandFilter that builds two IIRFilters to match
the FilterSpecification parameters, and generates band sample values for
the specified filter types |
|
DualBandFilter(IIRFilter filter1,
IIRFilter filter2)
Creates a new DualBandFilter that uses the IIRFilter
parameters to generate band sample values |
|
| Method Summary | |
|---|---|
void |
addDualBandListener(IDualBandSampleListener listener)
Attach listener to receive notification/copies of all new band values |
void |
receiveSample(double rawSample)
Processes the sample to filter for our two frequency bands, and notifies our listeners of the latest band sample values |
void |
removeAllDualBandListeners()
Remove all listeners from our notification list |
void |
removeDualBandListener(IDualBandSampleListener listener)
Remove listener from our notification list |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DualBandFilter(FilterSpecification spec1,
FilterSpecification spec2)
DualBandFilter that builds two IIRFilters to match
the FilterSpecification parameters, and generates band sample values for
the specified filter types
spec1 - the specification we will use to design our first IIRFilterspec2 - the specification we will use to design our second IIRFilter
public DualBandFilter(IIRFilter filter1,
IIRFilter filter2)
DualBandFilter that uses the IIRFilter
parameters to generate band sample values
filter1 - our first IIRFilterfilter2 - our second IIRFilter| Method Detail |
|---|
public void receiveSample(double rawSample)
receiveSample in interface IChannelSampleListenerrawSample - the raw sample that we will processpublic void addDualBandListener(IDualBandSampleListener listener)
addDualBandListener in interface IDualBandSampleGeneratorlistener - the observer who wants to receive band valuespublic void removeDualBandListener(IDualBandSampleListener listener)
removeDualBandListener in interface IDualBandSampleGeneratorlistener - the observer to removepublic void removeAllDualBandListeners()
removeAllDualBandListeners in interface IDualBandSampleGenerator
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||