Skip to content

Commit

Permalink
Migrate distance.js
Browse files Browse the repository at this point in the history
  • Loading branch information
curran committed Dec 29, 2020
1 parent 1075140 commit abeac3f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/distance.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
function isNum(a, b) {
return !(isNaN(a) || isNaN(b) || a==Infinity || b == Infinity);
}
reorder.distance = {
export const distance = {
euclidean: function(a, b) {
var i = a.length,
s = 0,
Expand Down
8 changes: 2 additions & 6 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,5 @@ export {
assert,
printhcluster
} from './debug';
export {
dist,
distmax,
distmin,
dist_remove
} from './dist';
export { dist, distmax, distmin, dist_remove } from './dist';
export { distance } from './distance';

0 comments on commit abeac3f

Please sign in to comment.