⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 repliche.m

📁 Bayes model averaging with selection of regressors - This program can be utilized for Bayesian Varia
💻 M
字号:
function [Gnew, Pnew]=repliche(G, P);%repliche: Bayesian Variable Selection %	   Search for replicates%***********************************************************************%INPUTS:% G,		matrix - visited vectors% P,		vector - log-relative post probs of visited vectors%%OUTPUTS:% Gnew,		matrix G without replicates% Pnew,		log-relative post probs of vectors in Gnew% %USAGE:% [Gnew, Pnew]=repliche(G, P);%%NOTE:% May be slow with very large matrices%%Copyright (c) 1997 Marina Vannucci.%********************************************************************** switch class(G)	case 'sparse'		G=full(G);	% unique.m does not work with sparse matrices		[Gnew,I,J]=unique(G,'rows');		Pnew=P(I);  	        Gnew = sparse(Gnew);	otherwise		[Gnew,I,J]=unique(G,'rows');                		Pnew=P(I);end	

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -