Eculedian distance average based on states with out for loop