Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Thread Subject:
pls help me to find the accuracy correctly.

Subject: pls help me to find the accuracy correctly.

From: balan chelvi

Date: 9 Aug, 2012 05:19:15

Message: 1 of 2

Vm=Out;
[row,col]=find(Vm==255);
FN1=length(row);
[row,col]=find(Vm==0);
TN1=length(row);
[row,col]=find(Vm>0);
TP=length(row);
[m,n]=size(Vm);
FP=abs(TP-(m-8*n-8));
FN=abs(FN1-TP);
TN=abs(TN1-FP);

Sensitivity=TP/(TP+FN);
disp('Sensitivity in Percentage');
disp(Sensitivity*100);

ACC=(TP+TN)/(TP+FP+TN+FN);
disp('Accuracy in Percentage');
disp(ACC*100);

Subject: pls help me to find the accuracy correctly.

From: Kwen

Date: 9 Aug, 2012 18:39:25

Message: 2 of 2

"balan chelvi" <thamsnatraj@yahoo.com> wrote in message <jvvh8j$9bh$1@newscl01ah.mathworks.com>...
> Vm=Out;
> [row,col]=find(Vm==255);
> FN1=length(row);
> [row,col]=find(Vm==0);
> TN1=length(row);
> [row,col]=find(Vm>0);
> TP=length(row);
> [m,n]=size(Vm);
> FP=abs(TP-(m-8*n-8));
> FN=abs(FN1-TP);
> TN=abs(TN1-FP);
>
> Sensitivity=TP/(TP+FN);
> disp('Sensitivity in Percentage');
> disp(Sensitivity*100);
>
> ACC=(TP+TN)/(TP+FP+TN+FN);
> disp('Accuracy in Percentage');
> disp(ACC*100);

I think you need to be more specific as to what you're asking for help with. What is the input 'Out'?

Tags for this Thread

No tags are associated with this thread.

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Contact us