-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathProgram.cs
29 lines (27 loc) · 879 Bytes
/
Program.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
using System;
namespace autocorrelation
{
class Program
{
static void Main(string[] args)
{
var formant = new Formants(4, 6);
var sample = new Vector(new double[] {
3.1, 14.1, -5.1, 46.1, -21.1, 31.5, -28.5, 4.6
});
var result = formant.StandardForm(sample);
Console.WriteLine(result);
var numpy_result = new Vector(new double[] {
1.0,
-0.6655717170963764,
0.35135277712109464,
-0.20410057538955617,
-0.007250228352834534,
-0.004610089351772599,
0.021757155103485887
});
Console.WriteLine(
"Difference between numpy and this is " + (numpy_result - result).Norm);
}
}
}