return matrix;
}
@Override
public Matrix cstd() {
Matrix mean = this.cmean();
Matrix std = zeros(1, this.getColumnsNum());
for (int i = 0; i < this.getRowsNum(); i++) {
for (int j = 0; j < this.getColumnsNum(); j++) {
double value = this.get(i, j);
double old = std.get(0, j);
std.put(0, j, old + (value - mean.get(0, j))
* (value - mean.get(0, j)));
}
}
std.divi(this.getRowsNum());
for (int j = 0; j < this.getColumnsNum(); j++) {
double value = Math.sqrt(std.get(0, j));
std.put(0, j, value);
}
return std;
}