[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #56698] [octave forge](tisean) pca and princom
From: |
Muhali |
Subject: |
[Octave-bug-tracker] [bug #56698] [octave forge](tisean) pca and princomp inconsistent |
Date: |
Tue, 30 Jul 2019 13:08:55 -0400 (EDT) |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Firefox/68.0 |
URL:
<https://savannah.gnu.org/bugs/?56698>
Summary: [octave forge](tisean) pca and princomp inconsistent
Project: GNU Octave
Submitted by: muhali
Submitted on: Tue 30 Jul 2019 10:08:53 AM PDT
Category: Octave Forge Package
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: None
Status: None
Assigned to: None
Originator Name:
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Release: 5.1.0
Operating System: GNU/Linux
_______________________________________________________
Details:
checking with
pkg load statistics tisean
x = randn(3, 2) ;
[COEFF,SCORE,LATENT] = princomp(x)
[EIGVAL, EIGVEC, TS] = pca(x)
assert(abs(COEFF), abs(EIGVEC), 1e-10)
assert(abs(LATENT), abs(EIGVAL(:,2)), 1e-10)
assert(abs(SCORE), abs(TS), 1e-10)
reveals that pca and princomp produce different results. princomp results, and
output format, seem to be identical to Matlab.
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?56698>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Octave-bug-tracker] [bug #56698] [octave forge](tisean) pca and princomp inconsistent,
Muhali <=