Euclidian ignore "Type"

This commit is contained in:
Pitchaya Boonsarngsuk
2018-03-21 15:52:02 +00:00
parent f8aa4d9fe9
commit 0c23730829

View File

@@ -12,7 +12,7 @@ function calculateEuclideanDistance(source, target, properties, normArgs) {
// Iterate through every column of data // Iterate through every column of data
for (var i = 0; i < properties.length; i++) { for (var i = 0; i < properties.length; i++) {
property = properties[i]; property = properties[i];
if (property.toLowerCase() !== "class" && property.toLowerCase() !== "app" && property.toLowerCase() !== "user" && property.toLowerCase() !== "weekday") { if (property.toLowerCase() !== "class" && property.toLowerCase() !== "app" && property.toLowerCase() !== "user" && property.toLowerCase() !== "weekday" && property.toLowerCase() !== "type") {
var s = source[property], var s = source[property],
t = target[property]; t = target[property];