aherbert commented on a change in pull request #29:
URL: https://github.com/apache/commons-statistics/pull/29#discussion_r684627645
##########
File path:
commons-statistics-distribution/src/test/java/org/apache/commons/statistics/distribution/ContinuousDistributionAbstractTest.java
##########
@@ -494,12 +494,7 @@ void testDensityIntegrals() {
final double tol = 1e-9;
final BaseAbstractUnivariateIntegrator integrator =
new IterativeLegendreGaussIntegrator(5, 1e-12, 1e-10);
- final UnivariateFunction d = new UnivariateFunction() {
- @Override
- public double value(double x) {
- return distribution.density(x);
- }
- };
+ final UnivariateFunction d = x -> distribution.density(x);
Review comment:
Can this be a function reference: `distribution::density`
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]