Examples of Distribution


Examples of jmt.gui.common.distributions.Distribution

    Vector classes = cd.getOpenClassKeys();
    for (int j = 0; j < classes.size(); j++) {
      Object thisClass = classes.get(j);
      Object temp = cd.getClassDistribution(thisClass);
      if (temp instanceof Distribution) {
        Distribution distr = (Distribution) temp;
        if (distr.hasMean()) {
          valid.add(thisClass);
        }
      }
    }
    return valid;
View Full Code Here

Examples of jmt.gui.common.distributions.Distribution

      return;
    }
    if (values != null) {
      if (singleClass) {
        Double refST = (Double) ((Vector) values).get(step);
        Distribution distr = (Distribution) stationDef.getServiceTimeDistribution(stationKey, classKey);
        distr.setMean(refST.doubleValue());
      } else {
        //Vector classSet = classDef.getClassKeys();
        for (int i = 0; i < avaibleClasses.size(); i++) {
          Object thisClass = avaibleClasses.get(i);
          double refST = ((ValuesTable) values).getValue(thisClass, step);
          Distribution distr = (Distribution) stationDef.getServiceTimeDistribution(stationKey, thisClass);
          distr.setMean(refST);
        }
      }
    }
  }
View Full Code Here

Examples of jmt.gui.common.distributions.Distribution

      avaibleClasses = new Vector<Object>(0, 1);
      for (int i = 0; i < allClasses.size(); i++) {
        Object thisClass = allClasses.get(i);
        Object temp = stationDef.getServiceTimeDistribution(stationKey, thisClass);
        if (temp instanceof Distribution) {
          Distribution distr = (Distribution) temp;
          if (distr.hasMean()) {
            avaibleClasses.add(thisClass);
          }
        }
      }
      values = new ValuesTable(classDef, avaibleClasses, numberOfSteps);
View Full Code Here

Examples of jmt.gui.common.distributions.Distribution

   */
  @Override
  public void restoreOriginalValues() {
    if (originalValues != null) {
      if (singleClass) {
        Distribution distr = (Distribution) stationDef.getServiceTimeDistribution(stationKey, classKey);
        Double mean = (Double) originalValues;
        distr.setMean(mean.doubleValue());
      } else {
        Vector values = (Vector) originalValues;
        for (int i = 0; i < avaibleClasses.size(); i++) {
          Object thisClass = avaibleClasses.get(i);
          Distribution distr = (Distribution) stationDef.getServiceTimeDistribution(stationKey, thisClass);
          Double thisValue = (Double) values.get(i);
          distr.setMean(thisValue.doubleValue());
        }
      }
    }
    //modified = false;
  }
View Full Code Here

Examples of org.apache.cassandra.stress.generate.Distribution

                                  ? BatchStatement.Type.LOGGED
                                  : BatchStatement.Type.valueOf(insert.remove("batchtype"));
                    if (!insert.isEmpty())
                        throw new IllegalArgumentException("Unrecognised insert option(s): " + insert);

                    Distribution visits = settings.insert.visits.get();
                    // these min/max are not absolutely accurate if selectchance < 1, but they're close enough to
                    // guarantee the vast majority of actions occur in these bounds
                    double minBatchSize = selectchance.get().min() * partitions.get().minValue() * generator.minRowCount * (1d / visits.maxValue());
                    double maxBatchSize = selectchance.get().max() * partitions.get().maxValue() * generator.maxRowCount * (1d / visits.minValue());
                    System.out.printf("Generating batches with [%d..%d] partitions and [%.0f..%.0f] rows (of [%.0f..%.0f] total rows in the partitions)%n",
                                      partitions.get().minValue(), partitions.get().maxValue(),
                                      minBatchSize, maxBatchSize,
                                      partitions.get().minValue() * generator.minRowCount,
                                      partitions.get().maxValue() * generator.maxRowCount);
 
View Full Code Here

Examples of org.apache.hadoop.fs.slive.Constants.Distribution

    cliopt.addOption(ConfigOption.BASE_DIR);
    cliopt.addOption(ConfigOption.RESULT_FILE);
    cliopt.addOption(ConfigOption.CLEANUP);
    {
      String distStrs[] = new String[Distribution.values().length];
      Distribution distValues[] = Distribution.values();
      for (int i = 0; i < distValues.length; ++i) {
        distStrs[i] = distValues[i].lowerName();
      }
      String opdesc = String.format(Constants.OP_DESCR, StringUtils
          .arrayToString(distStrs));
View Full Code Here

Examples of org.jets3t.service.model.cloudfront.Distribution

        }
       
        public void controlReturned(SimpleHandler childHandler) {
            DistributionConfig config =
                ((DistributionConfigHandler) childHandler).getDistributionConfig();
            this.distribution = new Distribution(id, status,
                lastModifiedTime, domainName, config);
        }
View Full Code Here

Examples of org.platformlayer.service.imagefactory.OperatingSystem.Distribution

    if (Strings.isNullOrEmpty(operatingSystemRecipe.distribution)) {
      return OperatingSystem.DebianSqueeze;
    }

    Distribution distribution = Distribution.parse(operatingSystemRecipe.distribution);

    String version = operatingSystemRecipe.version;
    if (Strings.isNullOrEmpty(version)) {
      version = distribution.getDefaultOsVersion();
    }

    return new OperatingSystem(distribution, version);
  }
View Full Code Here

Examples of org.rhq.core.domain.content.Distribution

    public void createDeleteDistribution() throws Exception {

        String kslabel = "testCreateDeleteRepo";
        String kspath = "/tmp";
        int id = distManager.createDistribution(overlord, kslabel, kspath, distType).getId();
        Distribution distro = distManager.getDistributionByLabel(kslabel);

        assert distro != null;

        assert id == distro.getId();

        distManager.deleteDistributionByDistId(overlord, id);
        distro = distManager.getDistributionByLabel(kslabel);
        assert distro == null;
    }
View Full Code Here

Examples of org.rhq.core.domain.content.Distribution

        String kslabel = "testCreateDeleteRepo";
        String kspath = "/tmp";
        // don't get id, if not needed downstream
        //int id = distManager.createDistribution(overlord, kslabel, kspath, distType).getId();
        distManager.createDistribution(overlord, kslabel, kspath, distType);
        Distribution distro = distManager.getDistributionByLabel(kslabel);

        DistributionFile distfile = new DistributionFile(distro, "vmlinux", "d41d8cd98f00b204e9800998ecf8427e");
        em.persist(distfile);
        Query query = em.createNamedQuery(DistributionFile.SELECT_BY_DIST_ID);

        query.setParameter("distId", distro.getId());
        List<DistributionFile> results = query.getResultList();
        assert results.size() != 0;
        Query querydel = em.createNamedQuery(DistributionFile.DELETE_BY_DIST_ID);

        querydel.setParameter("distId", distro.getId());

        querydel.executeUpdate();

        List<DistributionFile> resultsdel = query.getResultList();
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.