We have these arrays in python:
a1 = [0, 1, 2, 3]
a2 = [0, 1.1, 2.2, 3.1]
and want to find the deviation between a1 and a2. And sorry, we do not know what's such a type of deviation is named, but probably some of you do know.
We have these arrays in python:
a1 = [0, 1, 2, 3]
a2 = [0, 1.1, 2.2, 3.1]
and want to find the deviation between a1 and a2. And sorry, we do not know what's such a type of deviation is named, but probably some of you do know.
Copyright © 2021 Jogjafile Inc.
You can find the sum of squared distances (as clarified in the comments) by using
sum()andzip():