Skip to content

Commit

Permalink
Migrate pca_order.js
Browse files Browse the repository at this point in the history
  • Loading branch information
curran committed Dec 30, 2020
1 parent 8a273e0 commit 23fe478
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,7 @@ export { mat2graph } from './mat2graph';
export { meantranspose, meancolumns } from './mean';
export { optimal_leaf_order } from './optimal_leaf_order';
export { order } from './order';
//export {
//} from '';
export { pca1d, pca_order } from './pca_order';
//export {
//} from '';
//export {
Expand Down
4 changes: 2 additions & 2 deletions src/pca_order.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ function center(v) {


// See http://en.wikipedia.org/wiki/Power_iteration
reorder.pca1d = function(v, eps) {
export function pca1d(v, eps) {
var n = v.length;

if (v.length === 0) return null;
Expand All @@ -32,6 +32,6 @@ reorder.pca1d = function(v, eps) {
return reorder.poweriteration(cov, eps);
};

reorder.pca_order = function(v, eps) {
export function pca_order(v, eps) {
return reorder.sort_order(reorder.pca1d(v, eps));
};

0 comments on commit 23fe478

Please sign in to comment.