Package org.apache.mahout.math.function

Examples of org.apache.mahout.math.function.DoubleFunction


public class ContextualBayesBanditTest {
    @Test
    public void testConvergence() {
        final Random rand = RandomUtils.getRandom();
        Matrix recipes = new DenseMatrix(100, 10)
                .assign(new DoubleFunction() {
                    @Override
                    public double apply(double arg1) {
                        return rand.nextDouble() < 0.2 ? 1 : 0;
                    }
                });
View Full Code Here

TOP

Related Classes of org.apache.mahout.math.function.DoubleFunction

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.