-3

オブジェクトの比較 2 つのリストを探しています。コーパスの言語を知る。参照のリストは txt によって作成されます。コーパスも同様。

リスト参照/リストコーパス

    public Canagram(string anagram, int frequency,int percentage)
    {
        anagram = Anagram;         // exemple "a"
        frequency = Frequency;     // how many "a" in the txt 
        percentage = Percentage;   // what's the percentage compared to the other anagram
    }

目標は、各リストの各アナグラムをパーセンテージと一致させ、この 2 つのリスト間のグローバル パーセンテージ マッチを返すことです。

    public static int percentage(List<Canagram> reference, List<Canagram> corpus)
    {

        //don"t know how to compare this two list properly and return % match

        return (int) percentage of match;
    }

ありがとう!

4

1 に答える 1