Performance metrics of an algorithm

조회 수: 2 (최근 30일)
Sadiq Akbar
Sadiq Akbar 2019년 11월 6일
댓글: Sadiq Akbar 2020년 2월 27일
I have a desired vector u=[1 2 pi/4.1 pi/4]. I am using a metaheuristic algorithm BOA (Butterfly Optimization Algorithm). I estimate 100 vectors of the same size as u. I determine Error between u and each estimated vector. i.e. E1=u-Est1, E2=u-Est2, ---------E100=u-Est100. So I get 100 error vectors of same size as u.
The nature of 1st two elements in each vector is same i.e. both are amplitudes, and nature of 3rd and 4th elements are same,i.e both are angles.
My question is what performance metrics can I use for this on the basis of which I can comment on the performance of this algorithm. i.e. I am able to say that the algorithm is better because it estimated my vector approximately like my desired etc.

답변 (1개)

JESUS DAVID ARIZA ROYETH
JESUS DAVID ARIZA ROYETH 2019년 11월 6일
you can find the quadratic error of each parameter and then multiply it by a constant value that you consider to give greater or lesser importance to the error of said parameter
Here is a very useful example :
u=[1 2 pi/4.1 pi/4];%your desired value
e=2*randn(100,4);%your population 100x4 in this case random
err=sum([5 5 1 1].*(u-e).^2,2) % error for each vector (100x1)
in this example of 1st two elements are more important and that is why they are multiplied by 5
  댓글 수: 1
Sadiq Akbar
Sadiq Akbar 2020년 2월 27일
Sorry for being late as I was busy in an assignment. Thank you very much for your kind reply. But I am not getting you. As for as I understad what you have done is that you have found square of the error and then multiplied that with vector [5 5 1 1] and at last you add all the values obtained so far in err. My question is why did you multiply this squared error with vector [5 5 1 1 ]? And what can I conclude from this?
Regards,

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Multidimensional Arrays에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by