Socket
Socket
Sign inDemoInstall

affine-hull

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

affine-hull

Finds the affine hull of a point set


Version published
Weekly downloads
49K
increased by6.4%
Maintainers
1
Weekly downloads
 
Created
Source

affine-hull

Computes the lexicographically smallest basis for the affine hull of a point set.

Example

var aff = require('affine-hull')

console.log(aff([
  [0, 0, 0],
  [1, 0, 0],
  [2, 0, 0],
  [3, 0, 0],
  [0, 1, 0],
  [0, 0, 2]
]))

Output:

[0, 1, 4, 5]

Install

npm install affine-hull

API

require('affine-hull')(points)

Computes a basis for the affine hull of the set of points points.

  • points is a list of points encoded by d-tuples of numbers

Returns A list of indices for the generators of the affine hull of the point set

Credits

(c) 2014 Mikola Lysenko. MIT License

Keywords

FAQs

Package last updated on 22 Nov 2014

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

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc