简体   繁体   中英

get max value in a list of struct C#

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM