MCPcopy Create free account
hub / github.com/GeoDaCenter/geoda / mColumnDivRow

Method mColumnDivRow

Regression/SparseRow.cpp:116–122  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

114}
115
116void SparseRow::mColumnDivRow(const double * scale, const int row) {
117 const double m = scale[ row ];
118 for (int cnt = 0; cnt < size; ++cnt) {
119 int ix = nb[cnt].getIx();
120 nb[cnt].setWeight( nb[cnt].getWeight() * scale[ix] / m );
121 }
122}

Callers 1

makeRowStdMethod · 0.80

Calls 3

getIxMethod · 0.45
setWeightMethod · 0.45
getWeightMethod · 0.45

Tested by

no test coverage detected