New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@bunchmark/stats

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@bunchmark/stats - npm Package Compare versions

Comparing version 1.0.0-pre-0 to 1.0.0-pre-1

2

package.json
{
"name": "@bunchmark/stats",
"version": "1.0.0-pre-0",
"version": "1.0.0-pre-1",
"license": "ISC",

@@ -5,0 +5,0 @@ "description": "The bunchmark statistical routines.",

@@ -69,7 +69,7 @@ # @bunmchmark/stats

Like `quickselect` but `i`, and `left`, can be floats. If the aren't integers, this will return a linear [interpolation](https://en.wikipedia.org/wiki/Percentile#The_linear_interpolation_between_closest_ranks_method)(†) between `Math.abs(i)` and `abs(i) + 1` proporional to the decimal part.
Like `quickselect` but `i`, and `left`, can be floats. If the aren't integers, this will return a linear [interpolation](https://en.wikipedia.org/wiki/Percentile#The_linear_interpolation_between_closest_ranks_method)(†) between `Math.floor(i)` and `ceil(i)` proporional to the decimal part.
`array` ends up with `array[abs(i) + 1]` equals to `array.sort((a, b) => a-b)[abs(i) + 1]` (see `quickselect()` for how the rest of the array ends up).
`array` ends up with `array[ceil(i)]` equals to `array.sort((a, b) => a-b)[ceil(i)]` (see `quickselect()` for how the rest of the array ends up).
Values at indices smaller than `abs(left) + 1` are left untouched (see `quickselect` for the details)
Values at indices smaller than `ceil(left)` are left untouched (see `quickselect` for the details)

@@ -76,0 +76,0 @@ †. My implementation is quite naive, there are considerations in that section that are beyond my current understanding.

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