Examples of Algorithm


Examples of org.pentaho.aggdes.algorithm.Algorithm

  public TileSuggester(Lattice lattice) {
    this.lattice = lattice;
  }

  public Iterable<? extends Lattice.Tile> tiles() {
    final Algorithm algorithm = new MonteCarloAlgorithm();
    final PrintWriter pw = new PrintWriter(System.out);
    final Progress progress = new ArgumentUtils.TextProgress(pw);
    final StatisticsProvider statisticsProvider =
        new StatisticsProviderImpl(lattice);
    final double f = statisticsProvider.getFactRowCount();
    final ImmutableMap<Parameter, Object> map =
        ImmutableMap.<Parameter, Object>of(
            Algorithm.ParameterEnum.timeLimitSeconds, 1,
            Algorithm.ParameterEnum.aggregateLimit, 3,
            Algorithm.ParameterEnum.costLimit, f * 5d);
    final SchemaImpl schema = new SchemaImpl(lattice, statisticsProvider);
    final Result result = algorithm.run(schema, map, progress);
    final ImmutableList.Builder<Lattice.Tile> tiles = ImmutableList.builder();
    for (Aggregate aggregate : result.getAggregates()) {
      System.out.println(aggregate);
      tiles.add(toTile(aggregate));
    }
View Full Code Here

Examples of org.springframework.data.gemfire.repository.sample.Algorithm

  public void setup() {
    mappingContext = new GemfireMappingContext();
  }

  protected Algorithm createAlgorithm(final String name) {
    return new Algorithm() {
      public String getName() {
        return name;
      }
    };
  }
View Full Code Here

Examples of org.woped.config.metrics.Algorithm

        toBeSavedConfig.getConfiguration().unsetAlgorithms();
      toBeSavedConfig.getConfiguration().addNewAlgorithms();
     
      for(String metricID : algorithmOrigin.keySet())
        if(algorithmOrigin.get(metricID) == fileID) { 
          Algorithm algo = algorithmsMap.get(metricID);
          toBeSavedConfig.getConfiguration().getAlgorithms().addNewAlgorithm().set(algo);
        }
     
      toBeSavedConfig.save(new File(fileMap.get(fileID)), xmlOptions);
      confMap.put(fileID, toBeSavedConfig);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.