当前位置: 首页>>代码示例>>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;未经允许,请勿转载。