Re: math: how to initialize a custom prob. distribution function

2023-09-29 Thread Siddharth Jain
> float[] x = ... > int bins = 100; > ContinuousDistribution d = EmpiricalDistribution.from(bins, > IntStream.range(0, x.length).mapToDouble(i -> x[i]).toArray()); > > On Fri, 29 Sept 2023 at 17:44, Siddharth Jain wrote: > > > > I have a vector float[] x containing sa

math: how to initialize a custom prob. distribution function

2023-09-29 Thread Siddharth Jain
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