Package com.yahoo.labs.taxomo.util.SymbolTransitionFrequencies

Examples of com.yahoo.labs.taxomo.util.SymbolTransitionFrequencies.Coordinate


  private HashSet<Coordinate> getUsedCoordinates() {
    HashSet<Coordinate> isUsed = new HashSet<Coordinate>();

    for (int x : statesPerType.get(StateType.SUBNODE)) {
      for (int y : statesPerType.get(StateType.SHARED)) {
        isUsed.add(new Coordinate(x, y));
        isUsed.add(new Coordinate(y, x));
      }
      for (int y : statesPerType.get(StateType.SUBNODE)) {
        isUsed.add(new Coordinate(x, y));
      }
    }

    for (int x : statesPerType.get(StateType.SUPERNODE)) {
      for (int y : statesPerType.get(StateType.SHARED)) {
        isUsed.add(new Coordinate(x, y));
        isUsed.add(new Coordinate(y, x));
      }
      for (int y : statesPerType.get(StateType.SUPERNODE)) {
        isUsed.add(new Coordinate(x, y));
      }
    }

    return isUsed;
  }
View Full Code Here

TOP

Related Classes of com.yahoo.labs.taxomo.util.SymbolTransitionFrequencies.Coordinate

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.