Package org.cipres.treebase.domain.matrix

Examples of org.cipres.treebase.domain.matrix.CharWeight


    // create one char weight for each columnRangeConvertHelper
    Collection<ColumnRangeConvertHelper> colRangeHelpers = decodeNumSpecsSet(pWtSet, numChars);
    for (ColumnRangeConvertHelper helper : colRangeHelpers) {
      MesquiteNumber mesNum = helper.getNumber();

      CharWeight charWeight = null;
      if (mesNum.getValueClass() == MesquiteNumber.INT) {
        charWeight = new IntegerCharWeight(mesNum.getIntValue());
      } else {
        charWeight = new RealCharWeight(mesNum.getDoubleValue());
      }

      charWeight.setWeightColumns(helper.getColRanges());

      tbWeights.add(charWeight);
    }

    tbWeightSet.setCharWeights(tbWeights);
View Full Code Here

TOP

Related Classes of org.cipres.treebase.domain.matrix.CharWeight

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.