Examples of nextFloat()


Examples of org.jamesii.core.math.random.generators.IRandom.nextFloat()

    if (getUpperBound() == null) {
      setUpperBound(Float.MAX_VALUE / 2);
    }

    IRandom r1 = SimSystem.getRNGGenerator().getNextRNG();
    float rand1 = r1.nextFloat();

    setValue(getLowerBound() + (getUpperBound() - getLowerBound()) * rand1);
  }
}
View Full Code Here

Examples of org.terasology.utilities.random.FastRandom.nextFloat()

            pn.noise(posX, posY, posZ);
        }

        for (int i = 0; i < warmUp; i++) {
            float posX = sfr.nextFloat() * 1000f;
            float posY = sfr.nextFloat() * 1000f;
            float posZ = sfr.nextFloat() * 1000f;

            sn.noise(posX, posY, posZ);
        }
View Full Code Here

Examples of prefuse.util.collections.LiteralIterator.nextFloat()

     * Test method for 'edu.berkeley.guir.prefuse.data.util.IntIntTreeMap.keyIterator()'
     */
    public void testKeyIterator() {
        LiteralIterator iter = map.keyIterator();
        for ( int i=0; iter.hasNext(); ++i ) {
            float key = iter.nextFloat();
            assertEquals(sort[i], (int)key);
        }
    }

    /*
 
View Full Code Here

Examples of ucar.ma2.Array.nextFloat()

    // make sure that scaling is applied
    VariableDS vs = (VariableDS) ncfile.findVariable("hs");
    Array data = vs.read("0,1,:,:)");
    while (data.hasNext()) {
      float val = data.nextFloat();
      if (!vs.isMissing(val))
        assert (val < 10.0) : val;
      //System.out.printf("%f %n",val);
    }
View Full Code Here

Examples of ucar.ma2.Array.nextFloat()

    // make sure that scaling is applied
    VariableDS vs = (VariableDS) ncfile.findVariable("hs");
    Array data = vs.read("0,1,:,:)");
    while (data.hasNext()) {
      float val = data.nextFloat();
      if (!vs.isMissing(val))
        assert (val < 10.0) : val;
      //System.out.printf("%f %n",val);
    }
View Full Code Here

Examples of ucar.ma2.Array.nextFloat()

    assert v.getDataType() == DataType.FLOAT;

    boolean hasSigned = false;
    Array data = v.read();
    while (data.hasNext()) {
      float b = data.nextFloat();
      if (b < 0) hasSigned = true;
    }
    assert !hasSigned;

    ncfile.close();
View Full Code Here

Examples of ucar.ma2.Array.nextFloat()

    assert v.getDataType() == DataType.FLOAT;

    boolean hasSigned = false;
    Array data = v.read();
    while (data.hasNext()) {
      float b = data.nextFloat();
      if (b < 0) hasSigned = true;
    }
    assert !hasSigned;

    ncd.close();
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.