use of cern.colt.function.tdouble.DoubleFunction in project clusterMaker2 by RBVI.
the class ColtOps method divideScalarColumn.
/**
* divide all cells in a column by a value. This is used
* primarily for normalization when the current sum
* of the column is already known.
* Note: does not update matrix min/max values.
*
* @param column the column we're dividing
* @param value to divide each cell in the column by
*/
public void divideScalarColumn(int column, double value) {
DoubleMatrix1D col = getData().viewColumn(column);
col.assign(new DoubleFunction() {
public double apply(double v) {
return v / value;
}
});
}
Aggregations