Skip to content

sim0n/iridium

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Iridium

Iridium is a simple-to-use general utility library for Java. It contains classes and methods that can be used to make your life easier such as math utilities, extra collections, extra functions, and more.

Features

  • Math utilities
  • Collection utilities

Example Usage

Descriptive Statistics:

double kurtosis = Stats.kurtosis(data);

if (kurtosis < 0.0) {
    System.out.println("Data is platykurtic.");
}

Linear Regression:

RegressionResult result = Regression.leastSquares(x, y);

double slope = result.slope();
double intercept = result.intercept();
double coefficientOfDetermination = result.determination();

System.out.printf("slope=%s, intercept=%s, rsquared=%s", slope, intercept, coefficientOfDetermination);

Collections:

ClassToInstanceMapBuilder<Feature> features = new ClassToInstanceMapBuilder<Feature>()
            .put(new Feature1())
            .put(new Feature2())
            .put(new Feature3())
            .build();

Feature1 instance = features.getInstance(Feature1.class);

Dependency

If you want to use this in your project, you can add it as a Maven dependency:

<repositories>
  <repository>
    <id>iridium-repo</id>
    <url>https://raw.github.com/sim0n/iridium/repository/</url>
  </repository>
</repositories>

<dependencies>
  <dependency>
    <groupId>dev.sim0n</groupId>
    <artifactId>iridium</artifactId>
    <version>1.0-SNAPSHOT</version>
  </dependency>
</dependencies>

About

A general utility library for Java

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages