Example usage for org.apache.mahout.math.function TimesFunction TimesFunction

List of usage examples for org.apache.mahout.math.function TimesFunction TimesFunction

Introduction

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

Prototype

TimesFunction

Source Link

Usage

From source file:edu.utsa.sifter.som.SelfOrganizingMap.java

License:Apache License

public void rescale() { // call this after the SOM has converged
    final TimesFunction multiplier = new TimesFunction();
    for (int i = 0; i < NumCells; ++i) {
        Cells.viewRow(i).assign(multiplier, CellFactors[i]);
        CellFactors[i] = 1.0;//from  w w  w .  j  av  a 2  s  . com
    }
}