I am trying to re-implement some R code in Java and because it will be integrated in other code, not controled by me, it really needs to be in Java.
The critical part is fitting data to a non-standardized t-distribution using the moments of the data (mean, variance, skewness, kurtosis). I.e. finding the parameters of the non-standardized t-distribution which best fits the data.
I've already found a backup solution of making a Java wrapper of R code using JRI. But is there any way I could do this in pure Java code?