Apache common math java

Apache common math java

ApacheCon

Overview

0.1 About The User Guide

This guide is intended to help programmers quickly find what they need to develop solutions using Commons Math. It also provides a supplement to the javadoc API documentation, providing a little more explanation of the mathematical objects and functions included in the package.

0.2 What’s in commons-math

Commons Math is made up of a small set of math/stat utilities addressing programming problems like the ones in the list below. This list is not exhaustive, it’s just meant to give a feel for the kinds of things that Commons Math provides.

  • Computing means, variances and other summary statistics for a list of numbers
  • Fitting a line to a set of data points using linear regression
  • Fitting a curve to a set of data points
  • Finding a smooth curve that passes through a collection of points (interpolation)
  • Fitting a parametric model to a set of measurements using least-squares methods
  • Solving equations involving real-valued functions (i.e. root-finding)
  • Solving systems of linear equations
  • Solving Ordinary Differential Equations
  • Minimizing multi-dimensional functions
  • Generating random numbers with more restrictions (e.g distribution, range) than what is possible using the JDK
  • Generating random samples and/or datasets that are «like» the data in an input file
  • Performing statistical significance tests
  • Miscellaneous mathematical functions such as factorials, binomial coefficients and «special functions» (e.g. gamma, beta functions)
Читайте также:  Python json dumps separators

We are actively seeking ideas for additional components that fit into the Commons Math vision of a set of lightweight, self-contained math/stat components useful for solving common programming problems. Suggestions for new components or enhancements to existing functionality are always welcome! All feedback/suggestions for improvement should be sent to the commons-dev mailing list with [math] at the beginning of the subject line.

0.3 How commons-math is organized

Commons Math is divided into sixteen subpackages, based on functionality provided.

  • org.apache.commons.math4.stat — statistics, statistical tests
  • org.apache.commons.math4.analysis — rootfinding, integration, interpolation, polynomials
  • org.apache.commons.math4.random — random numbers, strings and data generation
  • org.apache.commons.math4.special — special functions (Gamma, Beta)
  • org.apache.commons.math4.linear — matrices, solving linear systems
  • org.apache.commons.math4.util — common math/stat functions extending java.lang.Math
  • org.apache.commons.math4.complex — complex numbers
  • org.apache.commons.math4.distribution — probability distributions
  • org.apache.commons.math4.fraction — rational numbers
  • org.apache.commons.math4.transform — transform methods (Fast Fourier)
  • org.apache.commons.math4.geometry — geometry (Euclidean spaces and Binary Space Partitioning)
  • org.apache.commons.math4.optim — function maximization or minimization
  • org.apache.commons.math4.ode — Ordinary Differential Equations integration
  • org.apache.commons.math4.genetics — Genetic Algorithms
  • org.apache.commons.math4.fitting — Curve Fitting
  • org.apache.commons.math4.ml — Machine Learning

0.4 How interface contracts are specified in commons-math javadoc

You should always read the javadoc class and method comments carefully when using Commons Math components in your programs. The javadoc provides references to the algorithms that are used, usage notes about limitations, performance, etc. as well as interface contracts. Interface contracts are specified in terms of preconditions (what has to be true in order for the method to return valid results), special values returned (e.g. Double.NaN) or exceptions that may be thrown if the preconditions are not met, and definitions for returned values/objects or state changes.

Читайте также:  View html in safari

When the actual parameters provided to a method or the internal state of an object make a computation meaningless, a MathIllegalArgumentException or MathIllegalStateException may be thrown. Exact conditions under which runtime exceptions (and any other exceptions) are thrown are specified in the javadoc method comments. In some cases, to be consistent with the IEEE 754 standard for floating point arithmetic and with java.lang.Math, Commons Math methods return Double.NaN values. Conditions under which Double.NaN or other special values are returned are fully specified in the javadoc method comments.

As of version 2.2, the policy for dealing with null references is as follows: When an argument is unexpectedly null, a NullArgumentException is raised to signal the illegal argument. Note that this class does not inherit from the standard NullPointerException but is a subclass of MathIllegalArgumentException .

0.5 Dependencies

Commons Math requires JDK 1.8+ and has no runtime dependencies.

0.6 License

Commons Math is distributed under the terms of the Apache License, Version 2.0: .

This product includes software developed by other third parties and distributed under licenses terms compatible with Apache License, Version 2.0. All the licenses of such third parties products are available in the distribution in the LICENSE file. Some products require additional attribution, these attributions can be found in the NOTICE file. These files are available both in the source packages and in the binaries distribution jar files.

Copyright © 2003-2022 The Apache Software Foundation. All Rights Reserved.

Apache Commons, Apache Commons Math, Apache, the Apache feather logo, and the Apache Commons project logos are trademarks of The Apache Software Foundation. All other marks mentioned may be trademarks or registered trademarks of their respective owners.

Источник

Apache common math java

ApacheCon

Download Apache Commons Math

Using a Mirror

We recommend you use a mirror to download our release builds, but you must verify the integrity of the downloaded files using signatures downloaded from our main distribution directories. Recent releases (48 hours) may not yet be available from all the mirrors.

You are currently using https://dlcdn.apache.org/. If you encounter a problem with this mirror, please select another mirror. If all mirrors are failing, there are backup mirrors (at the end of the mirrors list) that should be available.

It is essential that you verify the integrity of downloaded files, preferably using the PGP signature ( *.asc files); failing that using the SHA512 hash ( *.sha512 checksum files).

The KEYS file contains the public PGP keys used by Apache Commons developers to sign releases.

Apache Commons Math 4.0-beta1 (requires Java 8+)

Binaries

Source

Archives

Older releases can be obtained from the archives.

Copyright © 2003-2022 The Apache Software Foundation. All Rights Reserved.

Apache Commons, Apache Commons Math, Apache, the Apache feather logo, and the Apache Commons project logos are trademarks of The Apache Software Foundation. All other marks mentioned may be trademarks or registered trademarks of their respective owners.

Источник

Apache common math java

ApacheCon

Commons Math: The Apache Commons Mathematics Library

Commons Math is a library of lightweight, self-contained mathematics and statistics components addressing the most common problems not available in the Java programming language or Commons Lang.

  1. Real-world application use cases determine development priority.
  2. This package emphasizes small, easily integrated components rather than large libraries with complex dependencies and configurations.
  3. All algorithms are fully documented and follow generally accepted best practices.
  4. In situations where multiple standard algorithms exist, a Strategy pattern is used to support multiple implementations.
  5. Limited dependencies. No external dependencies beyond Commons components and the core Java platform (at least Java 1.3 up to version 1.2 of the library, at least Java 5 starting with version 2.0 of the library).

Download Math

Releases

Download the Latest Release of Commons Math.

Copyright © 2003-2022 The Apache Software Foundation. All Rights Reserved.

Apache Commons, Apache Commons Math, Apache, the Apache feather logo, and the Apache Commons project logos are trademarks of The Apache Software Foundation. All other marks mentioned may be trademarks or registered trademarks of their respective owners.

Источник

Apache common math java

ApacheCon

Download Apache Commons Math

Using a Mirror

We recommend you use a mirror to download our release builds, but you must verify the integrity of the downloaded files using signatures downloaded from our main distribution directories. Recent releases (48 hours) may not yet be available from all the mirrors.

You are currently using [preferred]. If you encounter a problem with this mirror, please select another mirror. If all mirrors are failing, there are backup mirrors (at the end of the mirrors list) that should be available.
[if-any logo] [end]

It is essential that you verify the integrity of downloaded files, preferably using the PGP signature ( *.asc files); failing that using the SHA512 hash ( *.sha512 checksum files).

The KEYS file contains the public PGP keys used by Apache Commons developers to sign releases.

Apache Commons Math 4.0-beta1 (requires Java 8+)

Binaries

Source

Archives

Older releases can be obtained from the archives.

Copyright © 2003-2022 The Apache Software Foundation. All Rights Reserved.

Apache Commons, Apache Commons Math, Apache, the Apache feather logo, and the Apache Commons project logos are trademarks of The Apache Software Foundation. All other marks mentioned may be trademarks or registered trademarks of their respective owners.

Источник

Apache common math java

ApacheCon

Table of Contents

  • 0. Overview
    • 0.1 About the User Guide
    • 0.2 What’s in commons-math
    • 0.3 How commons-math is organized
    • 0.4 How interface contracts are specified in commons-math javadoc
    • 0.5 Dependencies
    • 1.1 Overview
    • 1.2 Descriptive statistics
    • 1.3 Frequency distributions
    • 1.4 Simple regression
    • 1.5 Multiple Regression
    • 1.6 Rank transformations
    • 1.7 Covariance and correlation
    • 1.8 Statistical Tests
    • 2.1 Overview
    • 2.2 Correlated random vectors
    • 2.3 Low discrepancy sequences
    • 3.1 Overview
    • 3.2 Real matrices
    • 3.3 Real vectors
    • 3.4 Solving linear systems
    • 3.5 Eigenvalues/eigenvectors and singular values/singular vectors
    • 3.6 Non-real fields (complex, fractions . )
    • 4.1 Overview
    • 4.2 Error handling
    • 4.3 Root-finding
    • 4.4 Interpolation
    • 4.5 Integration
    • 4.6 Polynomials
    • 4.7 Differentiation
    • 5.1 Overview
    • 6.1 Overview
    • 6.2 Double array utilities
    • 6.3 int/double hash map
    • 6.4 Continued Fractions
    • 6.5 Binomial coefficients, factorials, Stirling numbers and other common math functions
    • 6.6 Fast mathematical functions
    • 6.7 Miscellaneous
    • 7.1 Overview
    • 8.1 Overview
    • 8.2 Generating data ‘like’ an input file
    • 9.1 Overview
    • 11.1 Overview
    • 12.1 Overview
    • 12.2 Univariate Functions
    • 12.3 Linear Programming
    • 12.4 Direct Methods
    • 12.5 General Case
    • 13.1 Overview
    • 13.2 Implemented Functions
    • 13.3 General Case
    • 14.1 Overview
    • 14.2 LeastSquaresBuilder and LeastSquaresFactory
    • 14.3 Model Function
    • 14.4 Parameters Validation
    • 14.5 Tuning
    • 14.6 Optimization Engine
    • 14.7 Solving
    • 14.8 Example
    • 15.1 Overview
    • 15.2 Continuous Output
    • 15.3 Discrete Events Handling
    • 15.4 Available Integrators
    • 15.5 Derivatives
    • 16.1 Overview
    • 16.2 GA Framework
    • 16.3 Implementation and Examples
    • 17.1 Overview
    • 17.2 Kalman Filter
    • 18.1 Overview
    • 18.2 Clustering algorithms and distance measures
    • 18.3 Implementation
    • 19.1 Overview
    • 19.2 Unchecked Exceptions
    • 19.3 Hierarchies
    • 19.4 Features

    Copyright © 2003-2022 The Apache Software Foundation. All Rights Reserved.

    Apache Commons, Apache Commons Math, Apache, the Apache feather logo, and the Apache Commons project logos are trademarks of The Apache Software Foundation. All other marks mentioned may be trademarks or registered trademarks of their respective owners.

    Источник

Оцените статью