本文整理汇总了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;
}
}
}
}
示例2: canExportProject
import mesquite.categ.lib.DNAState; //导入依赖的package包/类
public boolean canExportProject(MesquiteProject project) {
return (project.getNumberCharMatricesVisible(DNAState.class) > 0) ;
}
示例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");
}
示例4: getAcceptedClasses
import mesquite.categ.lib.DNAState; //导入依赖的package包/类
public Class[] getAcceptedClasses() {
return new Class[] {CategoricalState.class,ProteinState.class, DNAState.class, ContinuousState.class};
}