Closed tiborauer closed 1 year ago
Could you provide an example?
This one crashes: comp = pca(rand(10,100),'NumComponents',2)
This one does not: [comp score] = pca(rand(10,100),'NumComponents',2);
Just pushed a commit that fixes this error!
Thank you! Would you also update the Octave package?
There will be a new release sometime in the next two weeks. If you want to use the latest functionality with the changes in the pca
fuction, you can install from dev with the following command from the octave terminal
pkg install "https://github.com/gnu-octave/statistics/archive/refs/heads/main.zip"
The error occurs when the condition in https://github.com/gnu-octave/statistics/blob/8a8e723c32b6d9a87f2da993284c97159ef6061d/inst/pca.m#L367 is not met but the condition in https://github.com/gnu-octave/statistics/blob/8a8e723c32b6d9a87f2da993284c97159ef6061d/inst/pca.m#L449 is.