mirror of
https://github.com/esiur/esiur-dotnet.git
synced 2025-12-17 01:30:23 +00:00
Correlation
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user