Registry / utility / commons-math

commons-math

JSON →
library2.2javamavenunverified

Apache Commons Math is a library of lightweight, self-contained mathematics and statistics components for Java.

<dependency> <groupId>org.apache.commons</groupId> <artifactId>commons-math</artifactId> <version>2.2</version> </dependency>
INSTALL
IMPORT
SIG · COMMONS-MATH
C
commons-math
utilityjavav2.2
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

StatUtils
org.apache.commons.math.stat.StatUtils

Computes the mean of an array of doubles using Commons Math.

import org.apache.commons.math.stat.StatUtils; public class Example { public static void main(String[] args) { double[] values = {1.0, 2.0, 3.0, 4.0, 5.0}; double mean = StatUtils.mean(values); System.out.println("Mean: " + mean); } }
Debug
Known issues
breakingCommons Math 2.2 is outdated; consider upgrading to commons-math3.
fix
Replace commons-math with commons-math3 artifact.
affects: <=2.2
Upgrade
Version history
2.2latest on Maven
Audit
Dependencies

No dependency data recorded yet.

Agent activity
8 hits · last 30 days
node
8
Resources
commons-math — mvn dependency:get commons-math · libregistry