Changeset 120 for distools/kpca.m
- Timestamp:
- 04/09/17 20:54:03 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
distools/kpca.m
r79 r120 42 42 43 43 44 function [W,L] = kpca (K,alf )44 function [W,L] = kpca (K,alf,reg) 45 45 46 46 if nargin < 2 | isempty(alf), … … 48 48 end 49 49 if nargin < 1 | isempty(K), 50 W = prmapping(mfilename, alf);50 W = prmapping(mfilename,{alf,reg}); 51 51 W = setname(W,'Kernel PCA'); 52 52 return 53 53 end 54 54 55 if nargin > 2 && ~isempty(reg) 56 K = K+reg*eye(size(K,1)); 57 end 55 58 56 59 if (isdataset(K) | isa(K,'double')),
Note: See TracChangeset
for help on using the changeset viewer.