Newer
Older
msccd / matlabCode / ridgeCorrelation.m
@Jan-Peter Hohloch Jan-Peter Hohloch on 23 Nov 2016 241 bytes first commit
function [correlation]=ridgeCorrelation(data,kin,coeffs)
% ridgeCorrelation calculates the correlation with given coefficients for
% ridge regression
    prediction=coeffs(1)+data*coeffs(2:end);
    
    correlation=corr(kin,prediction);
end