Arquivos
WebBCI/docs/lib_csp.js.html
2017-11-21 23:07:12 -05:00

82 linhas
3.3 KiB
HTML

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>lib/csp.js - Documentation</title>
<script src="scripts/prettify/prettify.js"></script>
<script src="scripts/prettify/lang-css.js"></script>
<!--[if lt IE 9]>
<script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<link type="text/css" rel="stylesheet" href="styles/ionicons.min.css">
<link type="text/css" rel="stylesheet" href="styles/prettify-tomorrow.css">
<link type="text/css" rel="stylesheet" href="styles/jsdoc-default.css">
</head>
<body>
<input type="checkbox" id="nav-trigger" class="nav-trigger" />
<label for="nav-trigger" class="navicon-button x">
<div class="navicon"></div>
</label>
<label for="nav-trigger" class="overlay"></label>
<nav>
<h2><a href="index.html">Home</a></h2><h3>Classes</h3><ul><li><a href="module-webbci.LDA.html">LDA</a><ul class='methods'><li data-type='method'><a href="module-webbci.LDA.html#.project">project</a></li></ul></li><li><a href="module-webbci.signal.CSP.html">CSP</a><ul class='methods'><li data-type='method'><a href="module-webbci.signal.CSP.html#.project">project</a></li></ul></li><li><a href="module-webbci.signal.EEGWindow.html">EEGWindow</a><ul class='methods'><li data-type='method'><a href="module-webbci.signal.EEGWindow.html#addData">addData</a></li><li data-type='method'><a href="module-webbci.signal.EEGWindow.html#clear">clear</a></li></ul></li></ul><h3>Modules</h3><ul><li><a href="module-webbci.html">webbci</a></li></ul><h3>Namespaces</h3><ul><li><a href="module-webbci.network.html">network</a><ul class='methods'><li data-type='method'><a href="module-webbci.network.html#.addEEGListener">addEEGListener</a></li></ul></li><li><a href="module-webbci.signal.html">signal</a><ul class='methods'><li data-type='method'><a href="module-webbci.signal.html">generate</a></li><li data-type='method'><a href="module-webbci.signal.html#.getBandPower">getBandPower</a></li><li data-type='method'><a href="module-webbci.signal.html#.getPSD">getPSD</a></li></ul></li></ul>
</nav>
<div id="main">
<h1 class="page-title">lib/csp.js</h1>
<section>
<article>
<pre class="prettyprint source linenums"><code>var pwcsp = require('pw-csp');
/**
* Creates a new CSP object
* @name CSP
* @memberof module:webbci.signal
* @constructor
* @param {number[][]} class1 - Data samples for class 1. Rows should be samples, columns should be signals.
* @param {number[][]} class2 - Data samples for class 2. Rows should be samples, columns should be signals.
*/
/**
* Projects data and reduces to given number of dimensions
* @name project
* @memberof module:webbci.signal.CSP
* @function
* @param {number[][]} data - Data points to be projected. Rows should be samples, columns should be signals.
* @param {number} [dimensions] - Number of dimensions to be returned. Can range from 1 to number of signals. Defaults to number of signals.
* @returns {number[][]} Projected data. Rows are samples, columns are dimensions sorted by descending importance.
*/
module.exports = pwcsp;
</code></pre>
</article>
</section>
</div>
<br class="clear">
<footer>
Documentation generated on Tue Nov 21 2017 23:06:36 GMT-0500 (Eastern Standard Time)
</footer>
<script>prettyPrint();</script>
<script src="scripts/linenumber.js"></script>
</body>
</html>