robust-compress

WebJar for robust-compress

License

License

MIT
GroupId

GroupId

org.webjars.npm
ArtifactId

ArtifactId

robust-compress
Last Version

Last Version

1.0.0
Release Date

Release Date

Type

Type

jar
Description

Description

robust-compress
WebJar for robust-compress
Project URL

Project URL

http://webjars.org
Source Code Management

Source Code Management

https://github.com/mikolalysenko/robust-compress

Download robust-compress

How to add to project

<!-- https://jarcasting.com/artifacts/org.webjars.npm/robust-compress/ -->
<dependency>
    <groupId>org.webjars.npm</groupId>
    <artifactId>robust-compress</artifactId>
    <version>1.0.0</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.npm/robust-compress/
implementation 'org.webjars.npm:robust-compress:1.0.0'
// https://jarcasting.com/artifacts/org.webjars.npm/robust-compress/
implementation ("org.webjars.npm:robust-compress:1.0.0")
'org.webjars.npm:robust-compress:jar:1.0.0'
<dependency org="org.webjars.npm" name="robust-compress" rev="1.0.0">
  <artifact name="robust-compress" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.npm', module='robust-compress', version='1.0.0')
)
libraryDependencies += "org.webjars.npm" % "robust-compress" % "1.0.0"
[org.webjars.npm/robust-compress "1.0.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.

robust-compress

Quickly compress a non-overlapping increasing sequence. This does not normalize the sequence, but can be useful in some situations. Based on the algorithm in:

Jonathan Shewchuk, "Adaptive precision floating-point arithmetic and fast robust predicates for computational geometry"

Example

var compress = require("robust-compress")

var seq = [1, 2]

compress(seq)

console.log(seq)

Output:

[ 3 ]

Install

npm install robust-compress

API

require("robust-compress")(seq)

Approximately compress a non-overlapping increasing floating point expansion in place.

  • seq is a robust sequence

Returns seq

Note This method updates seq in place

Credits

(c) 2014 Mikola Lysenko. MIT License

Versions

Version
1.0.0