当前位置: 首页>>代码示例>>Java>>正文


Java TByteIntHashMap类代码示例

本文整理汇总了Java中gnu.trove.map.hash.TByteIntHashMap的典型用法代码示例。如果您正苦于以下问题:Java TByteIntHashMap类的具体用法?Java TByteIntHashMap怎么用?Java TByteIntHashMap使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


TByteIntHashMap类属于gnu.trove.map.hash包,在下文中一共展示了TByteIntHashMap类的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: SequenceStructureDatasetIterator

import gnu.trove.map.hash.TByteIntHashMap; //导入依赖的package包/类
public SequenceStructureDatasetIterator(DataInputIterator data_input_iterator, DataType data_type, boolean upper_only) {
	
	this.upperOnly = upper_only;
	
	this.type = data_type;
	
	this.dataInputIterator = data_input_iterator;
	
	// set the lambda expressions
	if (type == DataType.TEST) {
		this.hasNext = () -> this.dataInputIterator.hasNextTestData();
		this.dataInputIteratorNext = () -> this.dataInputIterator.nextTestData();
	}
	if (type == DataType.TRAIN) {
		this.hasNext = () -> this.dataInputIterator.hasNextTrainData();
		this.dataInputIteratorNext = () -> this.dataInputIterator.nextTrainData();
	}

	// Set the desired randomized region size
	try {
		randomizedRegionSize = Configuration.getParameters().getInt("Experiment.randomizedRegionSize");
	} catch (NoSuchElementException e) {
		
		AptaLogger.log(Level.SEVERE, this.getClass(), e);
		AptaLogger.log(Level.SEVERE, this.getClass(), "No randomized region size was specified. Please check your configuration file.");
		System.exit(1);
	}
	
	// Set the channel index mappings
	this.pairsToChannelIndex.put((byte)'A', new TByteIntHashMap());
	this.pairsToChannelIndex.put((byte)'C', new TByteIntHashMap());
	this.pairsToChannelIndex.put((byte)'G', new TByteIntHashMap());
	this.pairsToChannelIndex.put((byte)'T', new TByteIntHashMap());

	this.pairsToChannelIndex.get((byte)'A').put((byte)'A', 0);
	this.pairsToChannelIndex.get((byte)'A').put((byte)'C', 1);
	this.pairsToChannelIndex.get((byte)'A').put((byte)'G', 2);
	this.pairsToChannelIndex.get((byte)'A').put((byte)'T', 3);
	this.pairsToChannelIndex.get((byte)'C').put((byte)'A', 4);
	this.pairsToChannelIndex.get((byte)'C').put((byte)'C', 5);
	this.pairsToChannelIndex.get((byte)'C').put((byte)'G', 6);
	this.pairsToChannelIndex.get((byte)'C').put((byte)'T', 7);
	this.pairsToChannelIndex.get((byte)'G').put((byte)'A', 8);
	this.pairsToChannelIndex.get((byte)'G').put((byte)'C', 9);
	this.pairsToChannelIndex.get((byte)'G').put((byte)'G', 10);
	this.pairsToChannelIndex.get((byte)'G').put((byte)'T', 11);
	this.pairsToChannelIndex.get((byte)'T').put((byte)'A', 12);
	this.pairsToChannelIndex.get((byte)'T').put((byte)'C', 13);
	this.pairsToChannelIndex.get((byte)'T').put((byte)'G', 14);
	this.pairsToChannelIndex.get((byte)'T').put((byte)'T', 15);
	
}
 
开发者ID:drivenbyentropy,项目名称:aptasuite,代码行数:53,代码来源:SequenceStructureDatasetIterator.java

示例2: AutoDeltaBoolIntMap

import gnu.trove.map.hash.TByteIntHashMap; //导入依赖的package包/类
public AutoDeltaBoolIntMap() {
    this.changes = new ArrayList<>(5);
    this.container = new TByteIntHashMap();
    this.baselineCommandCount = 0;
}
 
开发者ID:bacta,项目名称:pre-cu,代码行数:6,代码来源:AutoDeltaBoolIntMap.java

示例3: AutoDeltaByteIntMap

import gnu.trove.map.hash.TByteIntHashMap; //导入依赖的package包/类
public AutoDeltaByteIntMap() {
    this.changes = new ArrayList<>(5);
    this.container = new TByteIntHashMap();
    this.baselineCommandCount = 0;
}
 
开发者ID:bacta,项目名称:pre-cu,代码行数:6,代码来源:AutoDeltaByteIntMap.java


注:本文中的gnu.trove.map.hash.TByteIntHashMap类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。