Closed claczny closed 9 years ago
Actually, we do not necessarily need to keep Y
. We would only need it if we would like to compute the Scores
for all the points by matrix multiplication of Y
with V_red
. If we are computing the projection per individual point, Y
is not needed.
Close, s.a. #8 .
PrincipalComponentsAnalysisMtj.java
includes the following fields:and
A
is initialized byA_init
.A_init
is no longer used afterwards and should be cleared from the memory. Moreover,DenseMatrix extends AbstractDenseMatrix
andAbstractDenseMatrix
implementspublic void set(int row, int column, double value)
which could then be used to directly populate the matricesA
andY
, thus saving one copy of the data. SinceA
is modified during the singular value decomposition, we need to create and keepY
.