2
0
mirror of https://github.com/esiur/esiur-dotnet.git synced 2025-12-17 01:30:23 +00:00

Correlation

This commit is contained in:
2022-11-06 20:42:01 +03:00
parent 2844eb60ec
commit 23f68b2dbb
2 changed files with 51 additions and 14 deletions

View File

@@ -1,13 +1,23 @@
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();