Mathematica 9 is now available
Student Support Forum
Student Support Forum: 'List Comparisons' topicStudent Support Forum > General > Archives > "List Comparisons"

Next Comment >Help | Reply To Topic
Author Comment/Response
05/08/12 12:49pm


I'm writing a Probabilistic Neural Network and need to compare the elements in two lists to find the True Positive, True Negative, False Positive, and False Negative values.


a= {1,1,0,0,1}
b= {1,1,1,0,0}

When a[[1]] and b[[1]] are both 1, it's a True Positive, if a[[1]] is 1, and b[[1]] is 0, False Positive... you get the picture.

Is there a function that will help me complete this task? If not, is there a quick way to solve this? Computing them by hand is very tedious.



URL: ,

Subject (listing for 'List Comparisons')
Author Date Posted
List Comparisons Chris 05/08/12 12:49pm
Re: List Comparisons Bill Simpson 05/10/12 4:04pm
Next Comment >Help | Reply To Topic