BookmarkSubscribeRSS Feed
scad
Calcite | Level 5

Hi,

I have a problem....

I want to calculate  sequentially using Euclidean distance

please help me

2 REPLIES 2
ballardw
Super User

What have you tried so far?

 

It is very hard to code from pictures and cryptic arrows with random values really do not describe an algorithm. Is the arrow a sum? division? accumulation? what.

 

This is such a small number of records you should be able to write out the exact calculation you need, at least in terms of + * / or - symbols. That we may be able to show how to code.

 

Do you have a SAS data set to work with?

PGStats
Opal | Level 21

SAS has a function to calculate Euclidian distance

 

distance = EUCLID(dist1, dist2);

 

https://documentation.sas.com/?docsetId=lefunctionsref&docsetTarget=p01uvzvdpw514in18j8xy1hwsd8d.htm... 

PG