On Fri, 29 Sept 2023 at 18:49, Siddharth Jain wrote:
>
> thanks. i see this is filed under legacy namespace with the comment
> Implementations
> of common discrete and continuous distributions. [Mostly moved to the
> "Commons Statistics" project (cf. JIRA: MATH-1443).]
> i then checked
>
thanks. i see this is filed under legacy namespace with the comment
Implementations
of common discrete and continuous distributions. [Mostly moved to the
"Commons Statistics" project (cf. JIRA: MATH-1443).]
i then checked
This may be what you require:
https://commons.apache.org/proper/commons-math/javadocs/api-4.0-beta1/org/apache/commons/math4/legacy/distribution/EmpiricalDistribution.html
You will have to convert your float values to double and then specify
the bin size:
float[] x = ...
int bins = 100;
I have a vector float[] x containing samples of a random variable. I would
like to initialize a prob. distribution fn. using these samples and then be
able to call methods like