274 views (last 30 days)

Show older comments

Matt Fig
on 9 Dec 2012

Greg Heath
on 10 Dec 2012

S = sum(A-B) is NOT a useful function for quantifying similarity because positive and negative terms will cancel.

The most common are

mae(A-B) % mean(abs(A-B))

sae(A-B) % sum(abs(A-B))

norm(A-B,1) % sum(abs(A-B))

norm(A-B,inf) % max(abs(A-B))

mse(A-B) % mean((A-B).^2)

sse(A-B) % sum((A-B).^2)

norm(A-B) % sqrt(sse(A-B))

Hope this helps.

Thank you for formally accepting my answer

Greg

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!