mirror of
https://github.com/esiur/esiur-dotnet.git
synced 2025-05-06 11:32:59 +00:00
27 lines
863 B
C#
27 lines
863 B
C#
using System.Diagnostics;
|
|
using Esiur.Analysis.DSP;
|
|
|
|
namespace Esiur.Analysis.Test
|
|
{
|
|
internal static class Program
|
|
{
|
|
private const int V = -1;
|
|
|
|
/// <summary>
|
|
/// The main entry point for the application.
|
|
/// </summary>
|
|
[STAThread]
|
|
static void Main()
|
|
{
|
|
var signalA = new double[] { 1, 1, 1, V, 1, 1, V, V, 1, V, 1, V, V, V, V };
|
|
var signalB = new double[] { 1, V, V, V, V, 1, V, V, V, V, 1, V, V, V, V };
|
|
var cor = signalA.CrossCorrelation(signalB, true);
|
|
Debug.WriteLine(cor);
|
|
|
|
// To customize application configuration such as set high DPI settings or default font,
|
|
// see https://aka.ms/applicationconfiguration.
|
|
ApplicationConfiguration.Initialize();
|
|
Application.Run(new FSoft());
|
|
}
|
|
}
|
|
} |