Beispiel #1
0
 public static string MeggetDecode(int n, int data, int y)
 {
     return(Marshal.PtrToStringAnsi(CodingAlgorithmsMethods.MeggetDecode(n, data, y)));
 }
Beispiel #2
0
 public static string ReedMullerDecode(int r, int m, int y, int yLength)
 {
     return(Marshal.PtrToStringAnsi(CodingAlgorithmsMethods.ReedMullerDecode(r, m, y, yLength)));
 }
Beispiel #3
0
        public static string SyndromeDecode(int n, int k, int d, int[] h, string y)
        {
            int input = Convert.ToInt32(y, 2);

            return(Marshal.PtrToStringAnsi(CodingAlgorithmsMethods.SyndromeDecode(n, k, d, input, h)));
        }
Beispiel #4
0
 public static string HammingDecode(int r, int y)
 {
     return(Marshal.PtrToStringAnsi(CodingAlgorithmsMethods.HammingDecode(r, y)));
 }
Beispiel #5
0
 public static string SystemFormCheckMatrix(int m, int n, int[] matrix)
 {
     return(Marshal.PtrToStringAnsi(CodingAlgorithmsMethods.SystemFormCheckMatrix(m, n, matrix)));
 }
Beispiel #6
0
 public static string SpectreLinearCode(int m, int n, int[] matrix)
 {
     return(Marshal.PtrToStringAnsi(CodingAlgorithmsMethods.LinearCode(m, n, matrix)));
 }
Beispiel #7
0
 public static string ShannonFanoShowTable(string text)
 {
     return(Marshal.PtrToStringAnsi(CodingAlgorithmsMethods.HuffmanShowTable(text)));
 }
Beispiel #8
0
 public static string ShannonFanoDecode(string text, string plainText)
 {
     return(Marshal.PtrToStringAnsi(CodingAlgorithmsMethods.ShannonFanoDecode(text, plainText)));
 }
Beispiel #9
0
 public static string HuffmanDecode(string text, string plainText)
 {
     return(Marshal.PtrToStringAnsi(CodingAlgorithmsMethods.HuffmanDecode(text, plainText)));
 }