简体   繁体   English

在struct C#列表中获取最大值

[英]get max value in a list of struct C#

i have a list of struct in c#. 我在C#中有一个struct列表。 the struct has 5 variables(int doc1,int paragraph1,int doc2,int paragraph2,float similarity). 该结构具有5个变量(int doc1,int段落1,int doc2,int段落2,浮点相似度)。 doc1 , paragraph1 represent index of paragraph in doc is related with parag2 in doc2 by this similarity value. doc1,段落1表示doc中段落的索引通过此相似性值与doc2中的parag2相关。 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. 我想让parag2和doc2具有最大的相似性。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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