Example usage for org.apache.mahout.math.function Functions plusMult

List of usage examples for org.apache.mahout.math.function Functions plusMult

Introduction

In this page you can find the example usage for org.apache.mahout.math.function Functions plusMult.

Prototype

public static DoubleDoubleFunction plusMult(double constant) 

Source Link

Document

Constructs a function that returns a + b*constant.

Usage

From source file:com.mapr.stats.bandit.ContextualBayesBandit.java

License:Apache License

public void train(int bandit, boolean success) {
    state.viewColumn(success ? 0 : 1).assign(featureMap.viewRow(bandit), Functions.plusMult(1.0 / m));
}