Skip to content

Releases: pwstegman/bci.js

v1.8.0

15 May 06:12
Compare
Choose a tag to compare

Release Notes

Welch's Method

Added Welch's method for power spectral density estimation. Documentation can be found at:
https://bci.js.org/docs/module-bcijs.html#.welch.

Updated Build Process

The switch to ES6 module syntax with webpack for building and the update to the latest math.js has allowed for better tree shaking and dead code removal in the browser dist build. File size of bci.min.js reduced from 429 KB to 293 KB.

v1.7.1

19 Apr 02:49
Compare
Choose a tag to compare

Release Notes

Bandpower Fix

Corrected issue #9. Bandpower option {average: true} now works when passing a single band.

v1.7.0

11 Apr 14:39
Compare
Choose a tag to compare

Release Notes

Added Periodogram Method

The periodogram method was added as a method to estimate the power spectral density (PSD) of a signal. It returns an object containing the PSD estimates and their corresponding frequencies.

Units of the estimates are the squared units of the input signal per Hz. For example, if the input signal is μV, then the PSD estimates are μV²/Hz.

let psd = bci.periodogram(signal, sample_rate);
console.log(psd.estimates); // Array of estimates, units of μV²/Hz for μV signal
console.log(psd.frequencies); // Array of corresponding frequencies, units of Hz

For more info, see https://bci.js.org/docs/module-bcijs.html#.periodogram

Added New Bandpower Method

The new bandpower method is more extensive and returns values in proper units (squared units of input signal, ex: μV² if the input signal is measured in μV). It supports single channel or multi channel input. It also allows for the calculation of relative bandpower (the power in a frequency band divided by the total power, unitless), as well as bandpower averaged across channels (ex: alpha power averaged across all channels).

let powers = bci.bandpower(signal, sample_rate, ['alpha', 'beta'], {relative: true});
// Returns an array containing the relative alpha power and the relative beta power

For more info, see https://bci.js.org/docs/module-bcijs.html#.bandpower

Deprecated Methods

The below methods have been deprecated in this release and have been replaced with the new periodogram and bandpower methods listed above. The methods shown below do not scale outputs to the proper units. The new methods correct this issue.

  • signalBandPower replaced by bandpower
  • averageBandPowers replaced by bandpower with the option {average: true}
  • psdBandPower replaced by bandpower with the option {input: 'psd'}
  • psd replaced with periodogram

v1.6.5

09 Nov 19:53
Compare
Choose a tag to compare
  • Updated dependencies
  • Fixed any security issues found by NPM audit

v1.6.3

22 Jul 17:42
Compare
Choose a tag to compare
  • Updated dependencies
  • Fixed any security issues found by NPM audit

v1.6.2

02 May 21:39
Compare
Choose a tag to compare
Published v1.6.2

v1.6.1

12 Apr 02:08
Compare
Choose a tag to compare
Published v1.6.1

v1.5.2

23 Feb 22:51
Compare
Choose a tag to compare
Published v1.5.2

v1.5.1

04 Jan 02:57
Compare
Choose a tag to compare
Published v1.5.1

v1.4.0

18 Dec 03:53
Compare
Choose a tag to compare
Published v1.4.0