1.0.9 • Published 12 months ago

basic-trend v1.0.9

Weekly downloads
24
License
MIT
Repository
github
Last release
12 months ago

Basic Trend

Basic algorithm to detect increasing, decreasing or stable trend in a Numbers sequence.

Installation

$ npm install --save basic-trend

Usage

import trend from 'basic-trend';

const sequence = [5,4,7,8,5,2,1,4,5,2,145,7,54,2,6,5,48,6,2,4,101,4,5,75,4,1,2,4,7,5,1,2,5,65,4,4,7,8];

const trend = trend(sequence);

Concept

  • If the given sequence appears to be increasing this method will return 1
  • If the given sequence appears to be decreasing, this method will return -1
  • If the given sequence appears to be stable or scattered, this method will return 0
1.0.9

12 months ago

1.0.7

3 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.0

4 years ago