m hmh

m hmh

  • NA
  • 3
  • 5.3k

get max value in a list of struct C#

Jun 5 2012 6:32 AM
i have a list of struct in c#. the struct has 5 variables(int doc1,int paragraph1,int doc2,int paragraph2,float similarity). doc1 , paragraph1 represent index of paragraph in doc is related with parag2 in doc2 by this similarity value. It is possible that a paragraph in a document is associated with many other paragraphs with different similarity. i want to have parag2 and doc2 having max similarity.

Answers (2)