Examples of sample()

@return a random value. @since 2.2
  • org.apache.commons.math3.distribution.RealDistribution.sample()
    Generate a random value sampled from this distribution. @return a random value.
  • org.apache.commons.math3.distribution.UniformIntegerDistribution.sample()
    {@inheritDoc}
  • org.apache.commons.math3.distribution.UniformRealDistribution.sample()
    {@inheritDoc}
  • org.apache.commons.math3.distribution.WeibullDistribution.sample()
    esus.ox.ac.uk/~clifford/a5/chap1/node5.html"> Inversion Method to generate exponentially distributed random values from uniform deviates.

    @return a random value. @since 2.2
  • org.apache.jmeter.protocol.http.sampler.HTTPSampler.sample()
  • org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample()
    Do a sampling and return its results. @param e Entry to be sampled @return results of the sampling
  • org.apache.jmeter.samplers.Sampler.sample()
    Obtains statistics about the given Entry, and packages the information into a SampleResult. @param e !ToDo (Parameter description) @return !ToDo (Return description)
  • org.apache.mahout.clustering.dirichlet.models.NormalModel.sample()
    TODO: Return a proper sample from the posterior. For now, return an instance with the same parameters @return an NormalModel
  • org.apache.mahout.clustering.lda.LDASampler.sample()
    @param topicDistribution vector of p(topicId) for all topicId < model.numTopics() @param numSamples the number of times to sample (with replacement) from the model @return array of length numSamples, with each entry being a sample from the model. Theremay be repeats
  • org.apache.mahout.knn.LumpyData.sample()
  • org.apache.mahout.math.random.ChineseRestaurant.sample()
  • org.apache.mahout.math.random.MultiNormal.sample()
  • org.apache.mahout.math.stats.Sampler.sample()
  • org.apache.openejb.api.Monitor.sample()
  • plm.hmm.DlmHiddenMarkovModel.sample()
    Sample a trajectory up to time T. Note: this method will add the filter's current input to the initial (and all other) states, so if you set the model input, the offset/input will be added twice to the initial state. @param random @param numSamples @return
  • prefuse.data.parser.TypeInferencer.sample()
    Sample the given text string for the given data column index. @param column the data column index of the sample @param value the text string sample
  • twitter4j.TwitterStream.sample()
    tter.com/Streaming-API-Documentation#sample">Twitter API Wiki / Streaming API Documentation - sample @since Twitter4J 2.0.10
  • vanilla.java.processingengine.testing.Histogram.sample()

  • Examples of ca.eandb.jmist.framework.Lens.sample()

        if (newEyeTail == null && m1 > 0) {
          PathInfo pi = x.getPathInfo();
          Lens lens = pi.getScene().getLens();
          Point2 p = RandomUtil.canonical2(rnd);
          newEyeTail = lens.sample(p, pi, rnd.next(), rnd.next(), rnd.next());
          m1--;
        }
        while (m1-- > 0) {
          newEyeTail = newEyeTail.expand(rnd.next(), rnd.next(), rnd.next());
          if (newEyeTail == null || newEyeTail.isAtInfinity()) {
    View Full Code Here

    Examples of ca.eandb.jmist.framework.Light.sample()

        int m1 = ka - 1 - l1;

        if (newLightTail == null && l1 > 0) {
          PathInfo pi = x.getPathInfo();
          Light light = pi.getScene().getLight();
          newLightTail = light.sample(pi, rnd.next(), rnd.next(), rnd.next());
          l1--;
        }
        while (l1-- > 0) {
          newLightTail = newLightTail.expand(rnd.next(), rnd.next(), rnd.next());
          if (newLightTail == null || newLightTail.isAtInfinity()) {
    View Full Code Here

    Examples of ca.eandb.jmist.framework.color.ColorModel.sample()

      @Override
      public Vector3 scatter(final SurfacePointGeometry x, Vector3 v, boolean adjoint,
          double wavelength, Random rnd) {

        ColorModel cm = new MonochromeColorModel(wavelength);
        Color white = cm.sample(rnd);
        SurfacePoint surf = new SurfacePoint() {
          public Medium getAmbientMedium() {
            return ambientMedium;
          }
          public Material getMaterial() {
    View Full Code Here

    Examples of ca.eandb.jmist.framework.color.Spectrum.sample()

       * @see ca.eandb.jmist.framework.color.ColorModel#getGray(double, ca.eandb.jmist.framework.color.WavelengthPacket)
       */
      @Override
      public Color getGray(double value, WavelengthPacket lambda) {
        Spectrum s = new XYZColor(value, value, value, this);
        return s.sample(lambda);
      }

      /* (non-Javadoc)
       * @see ca.eandb.jmist.framework.color.ColorModel#getNumChannels()
       */
     
    View Full Code Here

    Examples of ca.eandb.jmist.framework.color.monochrome.MonochromeColorModel.sample()

      @Override
      public Vector3 scatter(final SurfacePointGeometry x, Vector3 v, boolean adjoint,
          double wavelength, Random rnd) {

        ColorModel cm = new MonochromeColorModel(wavelength);
        Color white = cm.sample(rnd);
        SurfacePoint surf = new SurfacePoint() {
          public Medium getAmbientMedium() {
            return ambientMedium;
          }
          public Material getMaterial() {
    View Full Code Here

    Examples of ca.eandb.jmist.framework.path.EyeNode.sample()

       * @see ca.eandb.jmist.framework.Lens#rayAt(ca.eandb.jmist.math.Point2, ca.eandb.jmist.framework.color.WavelengthPacket, ca.eandb.jmist.framework.Random)
       */
      public final ScatteredRay rayAt(Point2 p, WavelengthPacket lambda, Random rnd) {
        PathInfo path = new PathInfo(lambda);
        EyeNode node = sample(p, path, rnd.next(), rnd.next(), rnd.next());
        return node.sample(rnd.next(), rnd.next(), rnd.next());
      }

    }
    View Full Code Here

    Examples of ca.eandb.jmist.framework.path.LightNode.sample()

       * @see ca.eandb.jmist.framework.Light#emit(ca.eandb.jmist.framework.color.WavelengthPacket, ca.eandb.jmist.framework.Random)
       */
      public final ScatteredRay emit(WavelengthPacket lambda, Random rnd) {
        PathInfo path = new PathInfo(lambda);
        LightNode node = sample(path, rnd.next(), rnd.next(), rnd.next());
        return node.sample(rnd.next(), rnd.next(), rnd.next());
      }

      /* (non-Javadoc)
       * @see ca.eandb.jmist.framework.Light#sample(ca.eandb.jmist.framework.path.PathInfo, double, double, double)
       */
     
    View Full Code Here

    Examples of ca.nengo.math.PDF.sample()

            Plotter.plot(pdf, 0, .001f, .5f, "aagg");

            float binSize = .05f;
            float[] bins = new float[8];
            for (int i = 0; i < 10000; i++) {
                float foo = pdf.sample()[0];
                int bin = (int) Math.floor(foo / binSize);
                if (bin <= 7) {
                    bins[bin] += 1;
                }
            }
    View Full Code Here

    Examples of ca.nengo.math.impl.GaussianPDF.sample()

       */
      public void testSample() {
        int n = 1000;
       
        GaussianPDF pdf = new GaussianPDF(0f, 1f);
        assertEquals(1, pdf.sample().length);
       
        int c = 0;
        for (int i = 0; i < n; i++) {
          float sample = pdf.sample()[0];
          if (sample > -1f && sample < 1f) c++;
    View Full Code Here

    Examples of ca.nengo.math.impl.IndicatorPDF.sample()

       */
      public void testSample() {
        PDF pdf = new IndicatorPDF(-1, 1);
       
        for (int i = 0; i < 10; i++) {
          float[] s = pdf.sample();
          assertEquals(1, s.length);
          assertTrue(s[0] > -1 && s[0] < 1);
        }
       
        pdf = new IndicatorPDF(0, 0);
    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.