cloud-distance
v1.0.9
Published
This packes calculates the distance between to clouds of data
Downloads
4
Maintainers
Readme
Cloud Distance
This is my very first package, hopefully, the first, not the last.
What it does
It takes two data clouds (e.g., two different datasets), and calculates the distance between them.
How does it work
Quite simples, actually. It is the Euclidian distance between two points. It sums up the whole distance: for each point, it calculates the Euclidian distance between the same point in each cloud. The distance is zero when the points are above each other (i.e., they are the same). In theory, if two clouds are the same, the distance are the same!
Where can I use
Should you want to access how close two clouds are, this is the place. I have created to use with artificial neural networks. Even though you have the error to access how the network is doing, for each feature, you have no idea. So, I have decided to create this simple routine to calculate the distance between the clouds generated by different features. My hope is that it can be a numerical way to compare two different feature, not just by eyes, looks can be deceiving!😂
What is next
Hope to keep improving! 👊👊
Sample
Try this!
const clouddistance = require("cloud-distance");
const aux = clouddistance.cloudDistance([{ x: 1, y: 2 }], [{ x: 1, y: 2 }]);
console.log(aux);
Jorge Guerra Pires, PhD [email protected]