Socket
Socket
Sign inDemoInstall

robust-estimate-float

Package Overview
Dependencies
0
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    robust-estimate-float

estimate the numeric value of a robust geometric predicate


Version published
Maintainers
1
Install size
4.46 kB
Created

Readme

Source

robust-estimate-float

Turn a robust geometric predicate into a float.

Note: that the result of this package is an estimate and typical floating point considerations should be made.

This module is really basic. Essentially the idea is that to convert a robust geometric predicate into a float we need to sum all of the components.

install

npm install robust-estimate-float

use


var est = require('robust-estimate-float');

console.log(est([1])) // 1

// this is an invalid predicate but demonstrates
// how this package works.
console.log(est([1, 1])) // 2

var sum = require('two-sum');

var r = sum(.2, .1);
console.log(est(r)) // 0.30000000000000004

license

MIT

Keywords

FAQs

Last updated on 28 Jul 2014

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc