當前位置: 首頁>>代碼示例>>Java>>正文


Java DNAState類代碼示例

本文整理匯總了Java中mesquite.categ.lib.DNAState的典型用法代碼示例。如果您正苦於以下問題:Java DNAState類的具體用法?Java DNAState怎麽用?Java DNAState使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


DNAState類屬於mesquite.categ.lib包,在下文中一共展示了DNAState類的4個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: setCharacterDistribution

import mesquite.categ.lib.DNAState; //導入依賴的package包/類
public void setCharacterDistribution(CharacterStatesHolder[] cStates) { 
	super.setCharacterDistribution(cStates);
	numChars= cStates.length;
	for (int c=0;c<numChars;c++){
		//This expansion costs a lot of time.  Perhaps use allStates based calculations instead of states[] based calculations?
		if (DNAState.class == cStates[c].getStateClass() || DNAState.class.isAssignableFrom(cStates[c].getStateClass())) {
			maxState[c] = 3;
			if (maxState[c]>maxStateDefined[c])
				maxState[c] = maxStateDefined[c];
			allStates[c] = CategoricalState.span(0,maxState[c]);
		}
		else {
			allStates[c] = ((CategoricalDistribution)cStates[c]).getAllStates();
			maxState[c] = CategoricalState.maximum(allStates[c]);
			if (maxState[c]>maxStateDefined[c]) {
				maxState[c] = maxStateDefined[c];
				allStates[c] = allStates[c] & CategoricalState.span(0,maxState[c]);
			}
			else if (maxState[c] < 1) {
				allStates[c] = CategoricalState.span(0,1);
				maxState[c] = 1;
			}
		}
	}
}
 
開發者ID:MesquiteProject,項目名稱:MesquiteArchive,代碼行數:26,代碼來源:MultipleProbCategCharModel.java

示例2: canExportProject

import mesquite.categ.lib.DNAState; //導入依賴的package包/類
public boolean canExportProject(MesquiteProject project) {  
	return (project.getNumberCharMatricesVisible(DNAState.class) > 0) ;
}
 
開發者ID:MesquiteProject,項目名稱:MesquiteCore,代碼行數:4,代碼來源:ExportPartitionFinderDNA.java

示例3: findDataToExport

import mesquite.categ.lib.DNAState; //導入依賴的package包/類
public CharacterData findDataToExport(MesquiteFile file, String arguments) { 
	return getProject().chooseData(containerOfModule(), file, null, DNAState.class, "Select data to export");
}
 
開發者ID:MesquiteProject,項目名稱:MesquiteCore,代碼行數:4,代碼來源:ExportPartitionFinderDNA.java

示例4: getAcceptedClasses

import mesquite.categ.lib.DNAState; //導入依賴的package包/類
public Class[] getAcceptedClasses() {
	return new Class[] {CategoricalState.class,ProteinState.class, DNAState.class, ContinuousState.class};
}
 
開發者ID:MesquiteProject,項目名稱:MesquiteCore,代碼行數:4,代碼來源:InterpretTNT.java


注:本文中的mesquite.categ.lib.DNAState類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。