isarn-sketches-java


License

License

Categories

Categories

Java Languages
GroupId

GroupId

org.isarnproject
ArtifactId

ArtifactId

isarn-sketches-java
Last Version

Last Version

0.3.0
Release Date

Release Date

Type

Type

jar
Description

Description

isarn-sketches-java
isarn-sketches-java
Project URL

Project URL

https://github.com/isarn/isarn-sketches
Project Organization

Project Organization

org.isarnproject
Source Code Management

Source Code Management

https://github.com/isarn/isarn-sketches

Download isarn-sketches-java

How to add to project

<!-- https://jarcasting.com/artifacts/org.isarnproject/isarn-sketches-java/ -->
<dependency>
    <groupId>org.isarnproject</groupId>
    <artifactId>isarn-sketches-java</artifactId>
    <version>0.3.0</version>
</dependency>
// https://jarcasting.com/artifacts/org.isarnproject/isarn-sketches-java/
implementation 'org.isarnproject:isarn-sketches-java:0.3.0'
// https://jarcasting.com/artifacts/org.isarnproject/isarn-sketches-java/
implementation ("org.isarnproject:isarn-sketches-java:0.3.0")
'org.isarnproject:isarn-sketches-java:jar:0.3.0'
<dependency org="org.isarnproject" name="isarn-sketches-java" rev="0.3.0">
  <artifact name="isarn-sketches-java" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.isarnproject', module='isarn-sketches-java', version='0.3.0')
)
libraryDependencies += "org.isarnproject" % "isarn-sketches-java" % "0.3.0"
[org.isarnproject/isarn-sketches-java "0.3.0"]

Dependencies

There are no dependencies for this project. It is a standalone project that does not depend on any other jars.

Project Modules

There are no modules declared in this project.

isarn-sketches

Sketching data structures

API documentation

Compatibility

isarn-sketches can operate with Algebird via the isarn-sketches-algebird-api

isarn-sketches can also operate with Apache Spark via the isarn-sketches-spark library

How to use in your project

// isarn-sketches
libraryDependencies += "org.isarnproject" %% "isarn-sketches" % "0.3.0"

// isarn-sketches-java
libraryDependencies += "org.isarnproject" % "isarn-sketches-java" % "0.3.0"

t-digest

scala> import org.isarnproject.sketches.TDigest
import org.isarnproject.sketches.TDigest

scala> val data = Vector.fill(10000) { scala.util.Random.nextGaussian() }
data: scala.collection.immutable.Vector[Double] = Vector(1.6046163970051968, 0.44151418924289004, ...

scala> val sketch = TDigest.sketch(data)
sketch: org.isarnproject.sketches.TDigest = TDigest(0.5,0,74,TDigestMap(-3.819069044174932 -> (1.0, 1.0), ...

scala> sketch.cdf(0)
res0: Double = 0.4984362744530557

scala> sketch.cdfInverse(0.5)
res1: Double = 0.0038481195948969205

t-digest resources

org.isarnproject

The Isarn Project

Enhancements to the Scala library ecosystem

Versions

Version
0.3.0
0.2.2
0.2.1
0.2.0