Skip to content

Commit

Permalink
Published v1.6.1
Browse files Browse the repository at this point in the history
  • Loading branch information
pwstegman committed Apr 12, 2019
1 parent 97c06a7 commit 1ba45bf
Show file tree
Hide file tree
Showing 15 changed files with 22 additions and 22 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ npm install bcijs
Browser

```html
<script src="https://cdn.jsdelivr.net/npm/[email protected].0/dist/bci.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected].1/dist/bci.min.js"></script>
```

## Tutorials
Expand Down Expand Up @@ -151,7 +151,7 @@ console.log(subarr);
BCI.js can be loaded from the jsDelivr CDN with

```html
<script src="https://cdn.jsdelivr.net/npm/[email protected].0/dist/bci.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected].1/dist/bci.min.js"></script>
```

You can also find `bci.js` and `bci.min.js` in the [/dist](https://github.com/pwstegman/bci.js/tree/master/dist) directory.
Expand Down
2 changes: 1 addition & 1 deletion browser.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// This file was auto generated, changes will be overwritten
// Created on Thu Apr 11 2019 20:37:53 GMT-0500 (Central Daylight Time)
// Created on Thu Apr 11 2019 21:05:29 GMT-0500 (Central Daylight Time)
// This module excludes Node.js specific methods so it can be used in the browser
/** @module bcijs */
module.exports.csp = require('./lib/compat/csp.js');
Expand Down
6 changes: 3 additions & 3 deletions dist/bci.js
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
/**
* bci.js v1.6.0
* bci.js v1.6.1
* https://github.com/pwstegman/bci.js
*
* License: MIT
* Generated 2019-04-12T01:37:53Z
* Generated 2019-04-12T02:05:29Z
*/

(function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.bci = f()}})(function(){var define,module,exports;return (function(){function r(e,n,t){function o(i,f){if(!n[i]){if(!e[i]){var c="function"==typeof require&&require;if(!f&&c)return c(i,!0);if(u)return u(i,!0);var a=new Error("Cannot find module '"+i+"'");throw a.code="MODULE_NOT_FOUND",a}var p=n[i]={exports:{}};e[i][0].call(p.exports,function(r){var n=e[i][1][r];return o(n||r)},p,p.exports,r,e,n,t)}return n[i].exports}for(var u="function"==typeof require&&require,i=0;i<t.length;i++)o(t[i]);return o}return r})()({1:[function(require,module,exports){
"use strict";

// This file was auto generated, changes will be overwritten
// Created on Thu Apr 11 2019 20:37:53 GMT-0500 (Central Daylight Time)
// Created on Thu Apr 11 2019 21:05:29 GMT-0500 (Central Daylight Time)
// This module excludes Node.js specific methods so it can be used in the browser

/** @module bcijs */
Expand Down
4 changes: 2 additions & 2 deletions dist/bci.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/docs/examples/csp/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
</div>

<script src="https://cdnjs.cloudflare.com/ajax/libs/two.js/0.6.0/two.min.js" integrity="sha256-0qJ0at+6aIXSqYEgj85J5ufSt6+IdiairAk4+OBJLMU=" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected].0/dist/bci.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected].1/dist/bci.min.js"></script>
<script src="csp.js"></script>
</body>
</html>
2 changes: 1 addition & 1 deletion docs/docs/examples/lda/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
</div>

<script src="https://cdnjs.cloudflare.com/ajax/libs/two.js/0.6.0/two.min.js" integrity="sha256-0qJ0at+6aIXSqYEgj85J5ufSt6+IdiairAk4+OBJLMU=" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected].0/dist/bci.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected].1/dist/bci.min.js"></script>
<script src="lda.js"></script>
</body>
</html>
8 changes: 4 additions & 4 deletions docs/docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ <h3>Classes</h3><ul><li id="oscStream-nav"><a href="module-bcijs.oscStream.html"
<p>BCI.js is being developed out of the Human Technology Interaction Lab at the University of Alabama Department of Computer Science.</p>
<h2>Getting Started</h2><p>Node.js</p>
<pre class="prettyprint source lang-bash"><code>npm install bcijs</code></pre><p>Browser</p>
<pre class="prettyprint source lang-html"><code>&lt;script src=&quot;https://cdn.jsdelivr.net/npm/[email protected].0/dist/bci.min.js&quot;>&lt;/script></code></pre><h2>Tutorials</h2><ul>
<pre class="prettyprint source lang-html"><code>&lt;script src=&quot;https://cdn.jsdelivr.net/npm/[email protected].1/dist/bci.min.js&quot;>&lt;/script></code></pre><h2>Tutorials</h2><ul>
<li><a href="https://medium.com/@pwstegman/eeg-motor-imagery-classification-in-node-js-with-bci-js-d21f29cf165">EEG Motor Imagery Classification in Node.js with BCI.js</a></li>
</ul>
<h2>Examples</h2><p>More examples can be found in the <a href="https://github.com/pwstegman/bci.js/tree/master/examples">examples</a> directory</p>
Expand Down Expand Up @@ -211,10 +211,10 @@ <h3>Signal Processing</h3><pre class="prettyprint source lang-javascript"><code>
let subarr = bci.subscript(arr, '1 3', '2:4'); // rows 1 and 3, columns 2 through 4
console.log(subarr);
/*
[[2, 3],
[8, 9]]
[[2, 3, 4],
[10, 11, 12]]
*/</code></pre><h2>Usage in the web</h2><p>BCI.js can be loaded from the jsDelivr CDN with</p>
<pre class="prettyprint source lang-html"><code>&lt;script src=&quot;https://cdn.jsdelivr.net/npm/[email protected].0/dist/bci.min.js&quot;>&lt;/script></code></pre><p>You can also find <code>bci.js</code> and <code>bci.min.js</code> in the <a href="https://github.com/pwstegman/bci.js/tree/master/dist">/dist</a> directory.</p>
<pre class="prettyprint source lang-html"><code>&lt;script src=&quot;https://cdn.jsdelivr.net/npm/[email protected].1/dist/bci.min.js&quot;>&lt;/script></code></pre><p>You can also find <code>bci.js</code> and <code>bci.min.js</code> in the <a href="https://github.com/pwstegman/bci.js/tree/master/dist">/dist</a> directory.</p>
<p>BCI.js methods are accessible via the global object <code>bci</code>.</p>
<p>If building a web distributable using a tool such as browserify or webpack, require <code>bcijs/browser.js</code> to load only methods that are browser compatible. Node.js specific methods such as networking and file system methods will not be included.</p>
<pre class="prettyprint source lang-javascript"><code>const bci = require('bcijs/browser.js');</code></pre><h2>Requiring specific methods</h2><p>You can require specific methods as well. For example, if you only need fastICA, you can use</p>
Expand Down
2 changes: 1 addition & 1 deletion docs/docs/index.js.html
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ <h1 class="page-title">
<section>
<article>
<pre class="prettyprint source linenums"><code>// This file was auto generated, changes will be overwritten
// Created on Thu Apr 11 2019 20:37:53 GMT-0500 (Central Daylight Time)
// Created on Thu Apr 11 2019 21:05:29 GMT-0500 (Central Daylight Time)
/** @module bcijs */
module.exports.csp = require('./lib/compat/csp.js');
module.exports.f1score = require('./lib/compat/f1score.js');
Expand Down
2 changes: 1 addition & 1 deletion docs/index.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!DOCTYPE html><html lang="en"><head><title>BCI.js</title><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"><link rel="shortcut icon" type="image/x-icon" href="/favicon.ico"><!-- Bootstrap--><link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous"><!-- Font Awesome--><link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.7.2/css/all.css" integrity="sha384-fnmOCqbTlWIlj8LyTjo7mOUStjsKC4pOpQbqyi7RrhN7udi9RwhKkMHpvLbHG9Sr" crossorigin="anonymous"><link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto+Mono"><!-- Main CSS--><link rel="stylesheet" href="css/main.css"><link rel="stylesheet" href="css/navbar.css"><link rel="stylesheet" href="css/prettify.css"></head><body><nav class="navbar navbar-expand-lg navbar-light"><div class="container"><a class="navbar-brand" href="/"><img src="/img/logo.svg" height="30" alt="BCI.js"></a><button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbar" aria-controls="navbar" aria-expanded="false" aria-label="Toggle navigation"><span class="navbar-toggler-icon"></span></button><div class="collapse navbar-collapse" id="navbar"><div class="navbar-nav ml-auto"><a class="nav-item nav-link" href="/docs"><i class="fas fa-book mr-1"></i> Docs</a><a class="nav-item nav-link" href="https://github.com/pwstegman/bci.js#tutorials"><i class="fas fa-drafting-compass mr-1"></i> Tutorials</a><a class="nav-item nav-link" href="/#examples"><i class="fas fa-code mr-1"></i> Examples</a><a class="nav-item nav-link" href="#" data-toggle="tooltip" data-placement="bottom" title="Coming soon"><i class="fas fa-cubes mr-1"></i> Showcase <span class="d-lg-none">(coming soon)</span></a></div></div></div></nav><section class="text-center" id="intro"><div class="container"><div class="py-5"><img id="logo" src="img/logo.svg" height="100"><p class="lead text-muted mt-2 font-weight-normal">Powering brain-computer interfaces with JavaScript</p><p><a class="btn btn-outline-primary my-2 mr-2" href="https://github.com/pwstegman/bci.js"><i class="fab fa-github"></i> GitHub</a><a class="btn btn-outline-success my-2" href="/docs"><i class="fas fa-book"></i> Docs</a></p></div></div></section><section class="blue" id="getstarted"><div class="container"><div class="row"><div class="col-md-4"><h2><i class="fas fa-download fa-sm mr-1"></i> Get Started</h2><p>Perform online and offline processing in Node.js with our NPM package, or get started directly in your browser with the jsDelivr CDN.</p><div class="d-md-none pb-2">&nbsp; </div></div><div class="col-md-8"><h5>Node.js</h5><pre class="prettyprint lang-bash codesnippet mx-auto"><code>npm install bcijs</code></pre><h5>Browser</h5><pre class="prettyprint lang-html codesnippet mx-auto"><code>&lt;script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/bci.min.js"&gt;&lt;/script&gt;</code></pre></div></div></div></section><div id="examples"><section class="feature" id="signalProcessing"><div class="container"><div class="row"><div class="col-lg-4"><h4><i class="fas fa-chart-line"></i> Signal Processing</h4><p>Isolate specific brainwaves with methods such as the fast fourier transform, common spatial pattern, FastICA, and more.</p><p>Find more examples in our <a href="https://github.com/pwstegman/bci.js/tree/master/examples">GitHub repo</a> and our <a href="/docs">docs</a>.</p><div class="d-md-none pb-2"></div></div><div class="col-lg-8"><nav><div class="nav nav-tabs" id="nav-tab" role="tablist"><a class="nav-item nav-link active" id="nav-bandpower-tab" data-toggle="tab" href="#nav-bandpower" role="tab" aria-controls="nav-bandpower" aria-selected="true">bandpower.js</a><a class="nav-item nav-link" id="nav-csp-tab" data-toggle="tab" href="#nav-csp" role="tab" aria-controls="nav-csp" aria-selected="true">csp.js</a></div></nav><div class="tab-content" id="nav-tabContent"><div class="tab-pane show active" id="nav-bandpower" role="tabpanel" aria-labelledby="nav-bandpower-tab"><pre class="prettyprint lang-js" style="min-height:27em;"><code>const bci = require('bcijs');
<!DOCTYPE html><html lang="en"><head><title>BCI.js</title><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"><link rel="shortcut icon" type="image/x-icon" href="/favicon.ico"><!-- Bootstrap--><link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous"><!-- Font Awesome--><link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.7.2/css/all.css" integrity="sha384-fnmOCqbTlWIlj8LyTjo7mOUStjsKC4pOpQbqyi7RrhN7udi9RwhKkMHpvLbHG9Sr" crossorigin="anonymous"><link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto+Mono"><!-- Main CSS--><link rel="stylesheet" href="css/main.css"><link rel="stylesheet" href="css/navbar.css"><link rel="stylesheet" href="css/prettify.css"></head><body><nav class="navbar navbar-expand-lg navbar-light"><div class="container"><a class="navbar-brand" href="/"><img src="/img/logo.svg" height="30" alt="BCI.js"></a><button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbar" aria-controls="navbar" aria-expanded="false" aria-label="Toggle navigation"><span class="navbar-toggler-icon"></span></button><div class="collapse navbar-collapse" id="navbar"><div class="navbar-nav ml-auto"><a class="nav-item nav-link" href="/docs"><i class="fas fa-book mr-1"></i> Docs</a><a class="nav-item nav-link" href="https://github.com/pwstegman/bci.js#tutorials"><i class="fas fa-drafting-compass mr-1"></i> Tutorials</a><a class="nav-item nav-link" href="/#examples"><i class="fas fa-code mr-1"></i> Examples</a><a class="nav-item nav-link" href="#" data-toggle="tooltip" data-placement="bottom" title="Coming soon"><i class="fas fa-cubes mr-1"></i> Showcase <span class="d-lg-none">(coming soon)</span></a></div></div></div></nav><section class="text-center" id="intro"><div class="container"><div class="py-5"><img id="logo" src="img/logo.svg" height="100"><p class="lead text-muted mt-2 font-weight-normal">Powering brain-computer interfaces with JavaScript</p><p><a class="btn btn-outline-primary my-2 mr-2" href="https://github.com/pwstegman/bci.js"><i class="fab fa-github"></i> GitHub</a><a class="btn btn-outline-success my-2" href="/docs"><i class="fas fa-book"></i> Docs</a></p></div></div></section><section class="blue" id="getstarted"><div class="container"><div class="row"><div class="col-md-4"><h2><i class="fas fa-download fa-sm mr-1"></i> Get Started</h2><p>Perform online and offline processing in Node.js with our NPM package, or get started directly in your browser with the jsDelivr CDN.</p><div class="d-md-none pb-2">&nbsp; </div></div><div class="col-md-8"><h5>Node.js</h5><pre class="prettyprint lang-bash codesnippet mx-auto"><code>npm install bcijs</code></pre><h5>Browser</h5><pre class="prettyprint lang-html codesnippet mx-auto"><code>&lt;script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/bci.min.js"&gt;&lt;/script&gt;</code></pre></div></div></div></section><div id="examples"><section class="feature" id="signalProcessing"><div class="container"><div class="row"><div class="col-lg-4"><h4><i class="fas fa-chart-line"></i> Signal Processing</h4><p>Isolate specific brainwaves with methods such as the fast fourier transform, common spatial pattern, FastICA, and more.</p><p>Find more examples in our <a href="https://github.com/pwstegman/bci.js/tree/master/examples">GitHub repo</a> and our <a href="/docs">docs</a>.</p><div class="d-md-none pb-2"></div></div><div class="col-lg-8"><nav><div class="nav nav-tabs" id="nav-tab" role="tablist"><a class="nav-item nav-link active" id="nav-bandpower-tab" data-toggle="tab" href="#nav-bandpower" role="tab" aria-controls="nav-bandpower" aria-selected="true">bandpower.js</a><a class="nav-item nav-link" id="nav-csp-tab" data-toggle="tab" href="#nav-csp" role="tab" aria-controls="nav-csp" aria-selected="true">csp.js</a></div></nav><div class="tab-content" id="nav-tabContent"><div class="tab-pane show active" id="nav-bandpower" role="tabpanel" aria-labelledby="nav-bandpower-tab"><pre class="prettyprint lang-js" style="min-height:27em;"><code>const bci = require('bcijs');

// Generate 1 second of sample data
let sampleRate = 512;
Expand Down
2 changes: 1 addition & 1 deletion examples/browser/csp/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
</div>

<script src="https://cdnjs.cloudflare.com/ajax/libs/two.js/0.6.0/two.min.js" integrity="sha256-0qJ0at+6aIXSqYEgj85J5ufSt6+IdiairAk4+OBJLMU=" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected].0/dist/bci.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected].1/dist/bci.min.js"></script>
<script src="csp.js"></script>
</body>
</html>
2 changes: 1 addition & 1 deletion examples/browser/lda/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
</div>

<script src="https://cdnjs.cloudflare.com/ajax/libs/two.js/0.6.0/two.min.js" integrity="sha256-0qJ0at+6aIXSqYEgj85J5ufSt6+IdiairAk4+OBJLMU=" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected].0/dist/bci.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected].1/dist/bci.min.js"></script>
<script src="lda.js"></script>
</body>
</html>
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// This file was auto generated, changes will be overwritten
// Created on Thu Apr 11 2019 20:37:53 GMT-0500 (Central Daylight Time)
// Created on Thu Apr 11 2019 21:05:29 GMT-0500 (Central Daylight Time)
/** @module bcijs */
module.exports.csp = require('./lib/compat/csp.js');
module.exports.f1score = require('./lib/compat/f1score.js');
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "bcijs",
"version": "1.6.0",
"version": "1.6.1",
"description": "EEG signal processing and machine learning",
"main": "index.js",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion website/templates/getstarted.pug
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ section#getstarted.blue
code npm install bcijs
h5 Browser
pre.prettyprint.lang-html.codesnippet.mx-auto
code &lt;script src="https://cdn.jsdelivr.net/npm/[email protected].0/dist/bci.min.js"&gt;&lt;/script&gt;
code &lt;script src="https://cdn.jsdelivr.net/npm/[email protected].1/dist/bci.min.js"&gt;&lt;/script&gt;

0 comments on commit 1ba45bf

Please sign in to comment.