List of usage examples for org.apache.mahout.math.function TimesFunction TimesFunction
TimesFunction
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 } }