-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
15 changed files
with
22 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|
@@ -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. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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><script src="https://cdn.jsdelivr.net/npm/[email protected].0/dist/bci.min.js"></script></code></pre><h2>Tutorials</h2><ul> | ||
<pre class="prettyprint source lang-html"><code><script src="https://cdn.jsdelivr.net/npm/[email protected].1/dist/bci.min.js"></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> | ||
|
@@ -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><script src="https://cdn.jsdelivr.net/npm/[email protected].0/dist/bci.min.js"></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><script src="https://cdn.jsdelivr.net/npm/[email protected].1/dist/bci.min.js"></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> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"> </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><script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/bci.min.js"></script></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"> </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><script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/bci.min.js"></script></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; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,4 +11,4 @@ section#getstarted.blue | |
code npm install bcijs | ||
h5 Browser | ||
pre.prettyprint.lang-html.codesnippet.mx-auto | ||
code <script src="https://cdn.jsdelivr.net/npm/[email protected].0/dist/bci.min.js"></script> | ||
code <script src="https://cdn.jsdelivr.net/npm/[email protected].1/dist/bci.min.js"></script> |