Code Monkey home page Code Monkey logo

perl-timeseries-adaptivefilter's Introduction

NAME

TimeSeries::AdaptiveFilter - Adaptive filter for data stream with possible outliers

VERSION

Version 0.04

STATUS

SYNOPSYS

use TimeSeries::AdaptiveFilter qw/filter/;

# creation with defaults
my $filter = filter();

# create filter with tuned parameters
my $filter = filter({
  floor             => 6
  cap               => 0.2,
  lookback_capacity => 20,
  lookback_period   => 4,
  decay_speeds      => [0.03, 0.01, 0.003],
  build_up_count    => 5,
  reject_criterium  => 4,
});

# usage
my $now = time;
$filter->($now, 100.002);        # returns true, i.e. all data is valid on learning period
$filter->($now + 1, 100.001);    # returns true
...                              # it learns form sample of 60 seconds
$filter->($now + 60, 100.005);   # returns true
$filter->($now + 61, 99.9995);   # returns true, as value does not differs much
$filter->($now + 62, 10_0000);   # returns false, outlier data
$filter->($now + 63, 10.0001);   # returns false, outlier data
$filter->($now + 64, 100.011);   # returns true, even if the sample is oulier, because
                                 # the filter rejected too much values, and has to
                                 # re-adapt to time seria again

DESCRIPTION

For the details of underlying mathematical model of the filter, configurable paramters and their usage, please, look at the shipped doc folder.

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.