Giter Club home page Giter Club logo

dmf.jl's Introduction

DMF.jl

DOI

Binder

DMF.jl is a julia package providing the Dynamic Mode Factorization algorithm, which is an extension of the Dynamic Mode Decomposition algorithm. This algorithm can be used to perform Blind Source Separation. Details about this algorithm are forthcoming.

Installation

The package has not been registered in METADATA.jl and can be installed with:

(v1.0) pkg> add https://github.com/aprasadan/DMF.jl

Example

A typical example of the usage of DMF.jl is:

using DMF
using LinearAlgebra

p = 100
k = 2
n = 1000

Q = randn(p, k)
S = [gen_cos_sequence(n, 2.0, 1.0)[1] gen_arma_sequence(n, [0.2, 0.7], [], 1.0)] 
Q = mapslices(normalize, Q; dims = 1) # Eigenvectors
S = mapslices(normalize, S; dims = 1) # Latent Signals, one cosine and one AR(2)
X = Q * S' # Data matrix (mixed)

# Perform unmixing
w, Q_hat, C_hat, A_hat = dmf(X; C_nsv = k, lag = 1)

@show eigenvector_error(Q, Q_hat[:, 1:k]) # Should be small
@show eigenvector_error(S, C_hat) # Should be small
@show [cos(2.0), 0.6], w[1:k] # Should be close

Requirements

This package requires Julia 1.0. Additionally, it requires the LinearAlgebra, DSP, Statistics, and StatsBase packages. The Combinatorics package is used in the error computation function and QuantEcon is needed to simulate ARMA processes. Neither Combinatorics nor QuantEcon are fundamentally required to use the DMF functionality.

License

This package is provided as is under the Apache 2.0 License.

Author

Arvind Prasadan

[email protected]

University of Michigan, Department of EECS

dmf.jl's People

Contributors

aprasadan avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.