[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Unable to install Tisean
From: |
Juan Pablo Carbajal |
Subject: |
Re: Unable to install Tisean |
Date: |
Wed, 8 Aug 2018 22:58:02 +0200 |
Please do not send private messages. Keep the discussion in the mailing list.
I am not your personal consultant. Only if you keep it in the mialing
list I might be able to help.
Regards,
On Wed, Aug 8, 2018 at 10:50 PM Sai Sravanthi <address@hidden> wrote:
>
> Thank you Soo much. My assignment submission is on 10th. I was really worried
> because of the tight deadline. I'll try this now and will get back to you if
> I need any more help
>
> On Wed, Aug 8, 2018, 9:48 PM Juan Pablo Carbajal <address@hidden> wrote:
>>
>> Hi,
>>
>> If you only want PCA you do not need tisean at all.
>> If X is your dataset (rows: samples, cols= variables)
>>
>> X_ = X - mean (X); # center variables
>> [U S V] = svd (X_, 1);
>> PCA_basis = V; # columns are your PCA vectors
>> P = S * U.'; # These are the scores, such that X_ = V * P
>> lambda = diag (S).^2 / ( size(X,1) - 1); # Eigenvalues of the sample
>> covaraince matrix
>> cumvar = cumsum (lambda) / sum (lambda); # explained variance as
>> function of number of components
>>
>> Regards,