Examples of Histogram2D


Examples of gem.util.Histogram2D

      "resource/experiments_expO_1.txt", "resource/experiments_expO_2.txt");

    Triplet.orderPvalGamma(trips);
    for (Triplet t : trips)
    {
      Histogram2D h1 = new Histogram2D(0.2);
      h1.setName(Triplet.getGeneToSymbolMap().get(t.F.geneid) + " -> " +
        Triplet.getGeneToSymbolMap().get(t.T.geneid) + " in " +
        Triplet.getGeneToSymbolMap().get(t.M.geneid) + "-");

      Histogram2D h2 = new Histogram2D(0.2);
      h2.setName(Triplet.getGeneToSymbolMap().get(t.F.geneid) + " -> " +
        Triplet.getGeneToSymbolMap().get(t.T.geneid) + " in " +
        Triplet.getGeneToSymbolMap().get(t.M.geneid) + "+");

      for (int i = 0; i < t.F.value.length; i++)
      {
        if (t.M.status[i] == ABSENT)
          h1.count(t.F.value[i], t.T.value[i]);
        else if (t.M.status[i] == PRESENT)
          h2.count(t.F.value[i], t.T.value[i]);
      }

      h1.plot(false);
      h2.plot(true);
    }
  }
View Full Code Here

Examples of gem.util.Histogram2D

  public static void printGammaAndSupportPlot()
  {
    List<Triplet> trips = readTrips("result/All_big_fdr0.05_var1.0.xls");

    Histogram2D h = new Histogram2D(0.05);
    for (Triplet t : trips)
    {
      double gamma = Difference.calcGamma(t);
      double support = Difference.getGammaSupport(t.cnt, true);
      h.count(gamma, (2 * support) - 1);
    }
    h.takeLog();
    h.plot();
  }
View Full Code Here

Examples of gov.nist.microanalysis.Utility.Histogram2D


    @Test
    public void testBSERadialEnergyDistributionListener() {
        BSERadialEnergyDistributionListener listener;
        Histogram2D h;

        listener = new BSERadialEnergyDistributionListener(Math2.ORIGIN_3D,
                Math2.Z_AXIS, 0.0, 50.0, 5, 100.0, 10, false);
        h = listener.getDistribution();
        assertEquals(10, h.xBinCount());
        assertEquals(5, h.yBinCount());
    }
View Full Code Here

Examples of gov.nist.microanalysis.Utility.Histogram2D

        super(center, normal);

        double[] rBinMins =
                RadialDistributionUtil.calculateBinMins(rMax, rBins, equalArea);
        double[] eBinMins = HistogramUtil.createBins(eMin, eMax, eBins);
        distribution = new Histogram2D(rBinMins, rMax, eBinMins, eMax);
    }
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.