Questions tagged [apache-commons-math]

Apache 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 Apache Commons Lang.

Apache 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 Apache Commons Lang.

Binaries and source code for Apache Commons Math can be downloaded from here.

202 questions
-1
votes
1 answer

Is there any API getCovariance of Singular Value Decomposition in OjAlgo library

We currently use apache commons math3 library for calculation of SVD. Recently we observed, for large matrices computation is taking time. As an alternative, evaluating OjAlgo library. Math3 library has a getCovariance method on…
Sudheer
  • 5
  • 2
-1
votes
1 answer

Access the non-zero elements of a sparse matrix in the Commons Math library

I am using the Apache Commons Math library for matrix operations because it seems quite complete despite its absolute lack of proper documentation. import org.apache.commons.math3.linear.SparseFieldMatrix; //inside a function: int n = 300; …
Santi Peñate-Vera
  • 1,053
  • 4
  • 33
  • 68
-1
votes
1 answer

DBSCAN libraries to extract density-reachable points

I'm working with DBSCAN libraries to extract clusters from a set of data. So far I've tested DBSCAN using Apache Common Math and WEKA libraries. (My question is not about which libraries are available with implementations of DBSCAN) So far I've…
-1
votes
2 answers

Apache DBSCANClusterer always returns one point in cluster

I'm trying to use DBSCANClusterer from apache.commons.math3.ml.clustering package with no success. I'm using Apache Common Math 3.4.1 When I run the DBSCANClusterer.cluster() method I always get one cluster with one point, which always corresponds…
-1
votes
1 answer

error while calling org.apache.commons.math3.transform.FastFourierTransformer;

I am new to programming in Java, and new to apach.commons.math3 library. I want to use fft in order to transform time series into Fourier series. the time series is saved in array of double named input. I'm using the following line to call the…
user1798339
  • 57
  • 1
  • 6
-1
votes
1 answer

Formula calculations in Java

I do have mathematical formulas like, (3.14*2.500^2)/4 IF(45.0=0,0,1/42.9^2) Which are formulas derived from Excel formulas. I need to get result of these kind of formulas using java only. I come across helpful link. Can you please advice me for…
Ketan Bhavsar
  • 5,338
  • 9
  • 38
  • 69
-6
votes
3 answers

Array values return null constantly

public void doMatrix(){ double[][] arrayA = {{a11,a12,a13,a14},{a21,a22,a23,a24},{a31,a32,a33,a34},{a41,a42,a43,a44}}; double[][] arrayB = {{b1},{b2},{b3},{b4}}; RealMatrix matrixA = MatrixUtils.createRealMatrix(arrayA); …
1 2 3
13
14