16 lines
386 B
Java
16 lines
386 B
Java
package com.baeldung.commons.math;
|
|
|
|
import org.apache.commons.math3.distribution.NormalDistribution;
|
|
import org.junit.Test;
|
|
|
|
public class ProbabilitiesUnitTest {
|
|
|
|
@Test
|
|
public void whenNormalDistributionSample_thenSuccess() {
|
|
final NormalDistribution normalDistribution = new NormalDistribution(10, 3);
|
|
|
|
System.out.println(normalDistribution.sample());
|
|
}
|
|
|
|
}
|