Socket
Book a DemoInstallSign in
Socket

outlier2

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

outlier2

Find outliers in dataset

3.14.159265
latest
Source
npmnpm
Version published
Weekly downloads
8
-46.67%
Maintainers
1
Weekly downloads
 
Created
Source

Outlier2

Compilation of other packages to find outliers in dataset.

Supported criteria/test

  • 3 sigma
  • Grubbs
  • Interquartile range
  • Iglewicz and Hoaglin method (MAD)
  • Median Differencing
  • Any external e.g. R-script (see test.js for more details)

Install

npm i outlier2

Usage

var outlier = require('outlier2');

var arr = [-2, 1, 2, 2, 3, 4, 15]; 
// Sync
outlier.mad(arr) // Return outlier values [15]
outlier.mad(arr, {indexes: true}) // Return outlier indexes [6]

// Async
outlier.mad(arr, {indexes: true}, function (err, outliers) {
	console.log((err) ? err : outliers);
})

Keywords

outliners

FAQs

Package last updated on 15 Feb 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.