Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

org.hammerlab.math:format_2.12

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

org.hammerlab.math:format_2.12

format

  • 1.1.1
  • Source
  • Maven
  • Socket score

Version published
Maintainers
1
Source

math-utils

Build Status Coverage Status Maven Central

Math, stats, and miscellaneous type utilities

math

stats

Descriptive Statistics

org.hammerlab.stats.Stats has APIs for ingesting numeric elements and outputting nicely formatted statistics about them; modeled after Apache commons-math DescriptiveStatistics.

As a bonus, it can ingest numbers in histogram-style / run-length-encoded format, supporting Long values as well for computations involving element counts from RDDs:

scala> import org.hammerlab.stats.Stats
scala> :paste
Stats.fromHist(
    List[(Int, Long)](
        1 →  10000000000L,
        2 →   1000000000,
        1 →          100,
        2 →   1000000000
    )
)

res0: org.hammerlab.stats.Stats[Int,Long] =
num:   	12000000100,   	mean:  	1.2,   	stddev:	0.4,   	mad:   	0
elems: 	1×10000000000, 2×1000000000, 1×100, 2×1000000000
sorted:	1×10000000100, 2×2000000000
0.0:   	1
0.1:   	1
1:     	1
5:     	1
10:    	1
25:    	1
50:    	1
75:    	1
90:    	2
95:    	2
99:    	2
99.9:  	2
100.0: 	2

HyperGeometric Distribution

org.hammerlab.stats.HypergeometricDistribution is an implementation of a hypergeometric distribution, modeled after org.apache.commons.math3.distribution.HypergeometricDistribution, but supporting 8-byte Long parameters.

types

FAQs

Package last updated on 28 Dec 2018

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