Giter Club home page Giter Club logo

spritzer's Introduction

spritzer

Search for periodic signals in noisy time series using Fourier methods

spritzer is a set of R functions developed for detecting strictly or nearly periodic signals in time series dominated by red noise. It is based on code developed and used in

A Bayesian test for periodic signals in red noise Vaughan S., 2010, MNRAS, 402, 307

The name SPRITZER is a blend of the words Strictly Periodic Tester.

Installation

spritzer is an R package, but is still in development. To set up from GitHub first install Hadley Wickham's devtools.

install.packages("devtools")

Now you can install straight from GitHub:

devtools::install_github("svdataman/spritzer")

It requires the mnormt package. If you don't already have this, you will also need to install it locally:

install.packages("mnormt")
require(spritzer)

and you're good to go.

Basic usage

Given a data array (or data.frame) as input, containing the time series data in columns (e.g. t, y, dy [optional])

result <- spritz(mrk766)

Assumptions

Spritzer works best if the input time series is regularly sampled, with no gaps, and is a realisation of a red noise process (with a smooth, steep power spectrum), which might contain an additional strictly periodic component. See my 2010 paper for more details.

To do

Lots to do before this is finished.

  • strip out the file loading, assume user has data in memory as array (or data.frame)
  • replace the MCMC engine with one from tonic (chain generation and diagnostic plots)
  • documentation
  • unit tests
  • better format of output list
  • strip out the interactive element (user response to questions) and replace with function arguments on inputs.
  • replace simulation in Fourier space with full simulations in time.

License

MIT

spritzer's People

Contributors

simonvaughandataandcode avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

carmensg

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.