Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SMOGN distances not accumulating #12

Closed
neverfox opened this issue Jul 2, 2020 · 1 comment
Closed

SMOGN distances not accumulating #12

neverfox opened this issue Jul 2, 2020 · 1 comment

Comments

@neverfox
Copy link

neverfox commented Jul 2, 2020

Perhaps I'm missing something but it appears the distances of the numeric variables are not accumulating and only the distance of the last column is stored in d1 and d2 before moving on:

d1 <- abs(T[i, x] - newM[(i - 1) * nexs + n, x])/ranges[x]

Shouldn't that be d1 <- d1 + abs(T[i, x] - newM[(i - 1) * nexs + n, x])/ranges[x]? Likewise for d2?

@neverfox
Copy link
Author

neverfox commented Jul 2, 2020

Duplicate of #9

@neverfox neverfox closed this as completed Jul 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant