affine-hull
Finds the affine hull of a point set
Last updated 12 years ago by mikolalysenko .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ npm install affine-hull 
SYNC missed versions from official npm registry.

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

Current Tags

  • 1.0.0                                ...           latest (12 years ago)

1 Versions

  • 1.0.0                                ...           12 years ago
Maintainers (1)
Downloads
Total 4
Today 0
This Week 0
This Month 1
Last Day 0
Last Week 0
Last Month 1
Dependencies (1)
Dev Dependencies (1)
Dependents (1)

© 2010 - cnpmjs.org x YWFE | Home | YWFE