This is my very first package, hopefully, the first, not the last.
It takes two data clouds (e.g., two different datasets), and calculates the distance between them.
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!
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!😂
Hope to keep improving! 👊👊
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 jorgeguerrapires@yahoo.com.br