Examples of Sample


Examples of com.adito.sample.Sample

        String name = (String) seq.getAttribute(SampleDefaultDetailsForm.ATTR_RESOURCE_NAME, null);
        String description = (String) seq.getAttribute(SampleDefaultDetailsForm.ATTR_RESOURCE_DESCRIPTION, null);
        boolean favorite = ((Boolean) seq.getAttribute(SampleDefaultDetailsForm.ATTR_FAVORITE, Boolean.FALSE)).booleanValue();
        int parentResourcePermission = ((Integer) seq.getAttribute(SampleDefaultDetailsForm.ATTR_PARENT_RESOURCE_PERMISSION,
                        new Integer(0))).intValue();
        Sample sample = null;
        try {
            try {
                sample = SamplePlugin.getDatabase().addSample(name, description, parentResourcePermission);
                // #ifdef XTRA
                CoreServlet.getServlet().fireCoreEvent(new ResourceChangeEvent(this,
View Full Code Here

Examples of com.adito.sample.Sample

     */
    public void initialise(List samples, SessionInfo session, String defaultSortColumnId) {
        super.initialize(session.getHttpSession(), defaultSortColumnId);
        try {
            for (Iterator i = samples.iterator(); i.hasNext();) {
                Sample sample = (Sample) i.next();
                List policies = CoreServlet.getServlet().getPolicyDatabase().getPoliciesAttachedToResource(sample);
                SampleItem si = new SampleItem(sample, policies);
                si.setFavoriteType(getFavoriteType(si.getResource().getResourceId()));
                getModel().addItem(si);
            }
View Full Code Here

Examples of com.alibaba.druid.bvt.hibernate.entity.Sample

    sessionFactory.close();
    JdbcUtils.close(dataSource);
  }

  private void doCreate(Session session) {
    Sample sample = new Sample();
    sample.setId(1L);
    sample.setDesc("sample");
    sample.setCreateTime(new Date());
    session.save(sample);
  }
View Full Code Here

Examples of com.compomics.util.experiment.biology.Sample

     */
    public void createProject() throws IOException {

        // Define new project references.
        experiment = new MsExperiment(cliInputBean.getiExperimentID());
        sample = new Sample(cliInputBean.getiSampleID());
        replicateNumber = cliInputBean.getReplicate();

        // Create the analysis set of this PeptideShaker process
        SampleAnalysisSet analysisSet = new SampleAnalysisSet(sample, new ProteomicAnalysis(replicateNumber));
        experiment.addAnalysisSet(sample, analysisSet);
View Full Code Here

Examples of com.compomics.util.pride.prideobjects.Sample

     */
    private void editSampleJButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_editSampleJButtonActionPerformed

        // get the selected sample details
        String selectedSample = (String) sampleJComboBox.getSelectedItem();
        Sample tempSample = prideObjectsFactory.getSamples().get(selectedSample);
        if (tempSample == null) {
            tempSample = new Sample("New Sample", null);
        }

        new NewSampleDialog(this, true, tempSample);
    }//GEN-LAST:event_editSampleJButtonActionPerformed
View Full Code Here

Examples of com.greentea.relaxation.jnmf.util.data.Sample

      for (int i = 0; i < count; ++i)
      {
         double x1 = 5 + shift1 + rand.nextDouble();
         double y1 = 5 + rand.nextDouble();

         Sample v1 = new Sample(null, DataUtils.asList(x1, y1), DataUtils.asList(0, 1));

         double x2 = 5 + shift2 + rand.nextDouble();
         double y2 = 5 + rand.nextDouble();
         Sample v2 = new Sample(null, DataUtils.asList(x2, y2), DataUtils.asList(1, 0));

         data.add(v1);
         data.add(v2);
      }
View Full Code Here

Examples of com.greentea.relaxation.jnmf.util.data.Sample

   {
      TrainingDataset data = new TrainingDataset(2, 0);

      for (int i = 0; i < 100; ++i)
      {
         data.add(new Sample(null,
                 DataUtils.asList(RandomUtils.nextInt(30), RandomUtils.nextInt(30)), null));
      }

//      data.add(new Sample(DataUtils.asList(10, 10), null));
//      data.add(new Sample(DataUtils.asList(20, 18), null));
View Full Code Here

Examples of com.greentea.relaxation.jnmf.util.data.Sample

      double maxIn0 = Integer.MIN_VALUE;
      double maxIn1 = Integer.MIN_VALUE;

      for (int i = 0; i < data.size(); ++i)
      {
         Sample pair = data.get(i);
         double in0 = pair.getInput().get(0);
         double in1 = pair.getInput().get(1);

         if (in0 < minIn0)
         {
            minIn0 = in0;
         }
View Full Code Here

Examples of com.greentea.relaxation.jnmf.util.data.Sample

         {
            double x = JNMFMathUtils
                    .reflectToInterval(j2, 0, pointsCount, in0Range.getMinimumDouble(),
                            in0Range.getMaximumDouble());

            Sample elem = new Sample(null, DataUtils.asList(x, y), null);
            testDataVectors.add(elem);
         }
      }

   }
View Full Code Here

Examples of com.greentea.relaxation.jnmf.util.data.Sample

   private void drawOriginalLearningDataPoints()
   {
      for (int i = 0; i < originalLearningData.size(); ++i)
      {
         Sample pair = originalLearningData.get(i);

         DoubleList input = pair.getInput();

         Color c1 = Color.WHITE;
         Color c2 = Color.BLACK;
         if (originalLearningData.getOutputsCount() > 1)
         {
            Color color = null;
            int winner = JNMFMathUtils.indexOfMaxElement(pair.getOutput());
            if (winner == 0)
            {
               color = c1;
            }
            else if (winner == 1)
            {
               color = c2;
            }

            drawPoint(input.get(0), input.get(1), color);
         }
         else if (originalLearningData.getOutputsCount() == 1)
         {
            double value = pair.getOutput().get(0);

            Color color = null;
            if (value > 0)
            {
               color = c1;
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.