cs-kalman-filters 1.0.1

dotnet add package cs-kalman-filters --version 1.0.1
NuGet\Install-Package cs-kalman-filters -Version 1.0.1
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="cs-kalman-filters" Version="1.0.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add cs-kalman-filters --version 1.0.1
#r "nuget: cs-kalman-filters, 1.0.1"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install cs-kalman-filters as a Cake Addin
#addin nuget:?package=cs-kalman-filters&version=1.0.1

// Install cs-kalman-filters as a Cake Tool
#tool nuget:?package=cs-kalman-filters&version=1.0.1


Kalman Filters implemented in .NET


Run the following command to install the nuget package:

Install-Package cs-kalman-filters


The following sample codes show how to use the 1d and 2d kalman-filters:

using System;

namespace KalmanFilters
    class Program
        static void Main(string[] args)

        public static void TestFilter1D()
            double[] measurements = new double[5] { 5.0, 6.0, 7.0, 9.0, 10.0 };
            double[] motion = new double[5] { 1.0, 1.0, 2.0, 1.0, 1.0 };
            double measurement_sigma = 4.0;
            double motion_sigma = 2.0;
            double mu = 0;
            double sigma = 10000;

            KalmanFilter1D filter = new KalmanFilter1D(mu, sigma, measurement_sigma, motion_sigma);

            for (int t = 0; t < measurements.Length; ++t)

        public static void TestFilter2D()
            double[] measurements = new double[3] { 1, 2, 3 }; //measurement of locations at t = 1, 2, 3

            //apply kalman filter to predict the velocity and location at t = 4
            KalmanFilter2D filter = new KalmanFilter2D();

            for (int t = 0; t < measurements.Length; ++t)

            Console.WriteLine("x: {0}", filter.StateDescription);
            Console.WriteLine("P: {0}", filter.UncertaintyDescription);


Product Compatible and additional computed target framework versions.
.NET Framework net461 is compatible.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

This package has no dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.0.1 1,458 5/1/2018

Kalman Filters in .NET 4.6.1