本文整理了Java中gnu.trove.TIntArrayList.<init>()
方法的一些代码示例,展示了TIntArrayList.<init>()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。TIntArrayList.<init>()
方法的具体详情如下:
包路径:gnu.trove.TIntArrayList
类名称:TIntArrayList
方法名:<init>
[英]Default Constructor
[中]缺省构造
代码示例来源:origin: JetBrains/ideavim
StructureViewModel model = builder.createStructureViewModel(editor);
TIntArrayList navigationOffsets = new TIntArrayList();
addNavigationElements(model.getRoot(), navigationOffsets, isStart);
代码示例来源:origin: cc.mallet/mallet
protected OneLabelL2RangeGEConstraints(TIntObjectHashMap<OneLabelL2IndGEConstraint> constraints, StateLabelMap map) {
this.constraints = constraints;
this.map = map;
this.cache = new TIntArrayList();
}
代码示例来源:origin: de.julielab/jcore-mallet-2.0.9
protected OneLabelGEConstraints(TIntObjectHashMap<OneLabelGEConstraint> constraints, StateLabelMap map) {
this.constraints = constraints;
this.map = map;
this.cache = new TIntArrayList();
}
代码示例来源:origin: de.julielab/jcore-mallet-2.0.9
protected OneLabelL2RangeGEConstraints(TIntObjectHashMap<OneLabelL2IndGEConstraint> constraints, StateLabelMap map) {
this.constraints = constraints;
this.map = map;
this.cache = new TIntArrayList();
}
代码示例来源:origin: com.github.steveash.mallet/mallet
protected OneLabelGEConstraints(TIntObjectHashMap<OneLabelGEConstraint> constraints, StateLabelMap map) {
this.constraints = constraints;
this.map = map;
this.cache = new TIntArrayList();
}
代码示例来源:origin: com.github.steveash.mallet/mallet
protected TwoLabelGEConstraints(ArrayList<TwoLabelGEConstraint> constraintsList, TIntIntHashMap constraintsMap, StateLabelMap map) {
this.constraintsList = constraintsList;
this.constraintsMap = constraintsMap;
this.map = map;
this.cache = new TIntArrayList();
}
代码示例来源:origin: cc.mallet/mallet
private void readObject (ObjectInputStream in) throws IOException, ClassNotFoundException
{
in.defaultReadObject ();
int version = in.readInt ();
universe = (Universe) in.readObject ();
int[] vals = (int[]) in.readObject ();
included = new TIntArrayList (vals);
}
代码示例来源:origin: de.julielab/jcore-mallet-2.0.9
private void readObject (ObjectInputStream in) throws IOException, ClassNotFoundException
{
in.defaultReadObject ();
int version = in.readInt ();
universe = (Universe) in.readObject ();
int[] vals = (int[]) in.readObject ();
included = new TIntArrayList (vals);
}
代码示例来源:origin: de.julielab/jcore-mallet-2.0.9
public TwoLabelGEConstraints() {
this.constraintsList = new ArrayList<TwoLabelGEConstraint>();
this.constraintsMap = new TIntIntHashMap();
this.map = null;
this.cache = new TIntArrayList();
}
代码示例来源:origin: de.julielab/jcore-mallet-2.0.9
public OneLabelL2IndPRConstraints(boolean normalized) {
this.normalized = normalized;
this.numDimensions = 0;
this.constraints = new TIntObjectHashMap<OneLabelL2IndPRConstraint>();
// this will be set by the PRTrainer
this.map = null;
this.cache = new TIntArrayList();
}
代码示例来源:origin: com.github.steveash.mallet/mallet
public TwoLabelGEConstraints() {
this.constraintsList = new ArrayList<TwoLabelGEConstraint>();
this.constraintsMap = new TIntIntHashMap();
this.map = null;
this.cache = new TIntArrayList();
}
代码示例来源:origin: cc.mallet/mallet
public ListVarSet (Universe universe, Collection included)
{
this.universe = universe;
this.included = new TIntArrayList (included.size ());
java.util.Iterator it = included.iterator();
while (it.hasNext()) {
this.included.add (universe.getIndex ((Variable) it.next ()));
}
this.included.sort ();
}
代码示例来源:origin: cc.mallet/mallet
public MaxEntFLGEConstraints(int numFeatures, int numLabels, boolean useValues) {
this.numFeatures = numFeatures;
this.numLabels = numLabels;
this.useValues = useValues;
this.constraints = new TIntObjectHashMap<MaxEntFLGEConstraint>();
this.indexCache = new TIntArrayList();
this.valueCache = new TDoubleArrayList();
}
代码示例来源:origin: cc.mallet/mallet
public OneLabelL2PRConstraints(boolean normalized) {
this.constraints = new TIntObjectHashMap<OneLabelPRConstraint>();
this.constraintIndices = new TIntIntHashMap();
this.cache = new TIntArrayList();
this.normalized = normalized;
}
代码示例来源:origin: de.julielab/jcore-mallet-2.0.9
public MaxEntFLPRConstraints(int numFeatures, int numLabels, boolean useValues) {
this.useValues = useValues;
this.numFeatures = numFeatures;
this.numLabels = numLabels;
this.constraints = new TIntObjectHashMap<MaxEntFLPRConstraint>();
this.indexCache = new TIntArrayList();
this.valueCache = new TDoubleArrayList();
}
代码示例来源:origin: de.julielab/jcore-mallet-2.0.9
public MaxEntRangeL2FLGEConstraints(int numFeatures, int numLabels, boolean useValues, boolean normalize) {
this.numFeatures = numFeatures;
this.numLabels = numLabels;
this.useValues = useValues;
this.normalize = normalize;
this.constraints = new TIntObjectHashMap<MaxEntL2IndGEConstraint>();
this.indexCache = new TIntArrayList();
this.valueCache = new TDoubleArrayList();
}
代码示例来源:origin: com.github.steveash.mallet/mallet
public MaxEntFLGEConstraints(int numFeatures, int numLabels, boolean useValues) {
this.numFeatures = numFeatures;
this.numLabels = numLabels;
this.useValues = useValues;
this.constraints = new TIntObjectHashMap<MaxEntFLGEConstraint>();
this.indexCache = new TIntArrayList();
this.valueCache = new TDoubleArrayList();
}
代码示例来源:origin: net.sourceforge.mstparser/mstparser
public int[] keys() {
TIntArrayList keys = new TIntArrayList();
addKeysToList(keys);
return keys.toNativeArray();
}
代码示例来源:origin: com.github.steveash.mallet/mallet
public MaxEntFLPRConstraints(int numFeatures, int numLabels, boolean useValues) {
this.useValues = useValues;
this.numFeatures = numFeatures;
this.numLabels = numLabels;
this.constraints = new TIntObjectHashMap<MaxEntFLPRConstraint>();
this.indexCache = new TIntArrayList();
this.valueCache = new TDoubleArrayList();
}
代码示例来源:origin: com.github.steveash.mallet/mallet
private void fillUnclusteredInstances (int size) {
unclusteredInstances = new TIntArrayList(size);
for (int i = 0; i < size; i++)
unclusteredInstances.add(i);
unclusteredInstances.shuffle(random);
}
内容来源于网络,如有侵权,请联系作者删除!