Examples of Noise


Examples of ca.nengo.model.Noise

          float radialInput = (ensemble.getDimension() == 1) ? x[j]*encoders[i][0] : x[j];
  //        float radialInput = getRadialInput(ensemble, i, x[j]);
         
          ((NEFNode) nodes[i]).setRadialInput(radialInput);
          try {
            Noise noise=null;
            if (nodes[i] instanceof SpikingNeuron) {
              noise=((SpikingNeuron)nodes[i]).getNoise();
              ((SpikingNeuron)nodes[i]).setNoise(null);
            }
            nodes[i].run(0f, 0f);
View Full Code Here

Examples of ca.nengo.model.Noise

    public static void main(String[] args) {
        float tau = .01f;
        DynamicalSystem dynamics = new SimpleLTISystem(new float[]{-1f/tau}, new float[][]{new float[]{1f/tau}}, MU.I(1), new float[1], new Units[]{Units.UNK});
        Integrator integrator = new EulerIntegrator(.0001f);
//      Noise noise = NoiseFactory.makeRandomNoise(1000, new GaussianPDF(0, 1));
        Noise noise = NoiseFactory.makeRandomNoise(1000, new GaussianPDF(0, 1), dynamics, integrator);
//      Noise noise = NoiseFactory.makeNullNoise(1);
//      Noise noise = NoiseFactory.makeExplicitNoise(new Function[]{new FourierFunction(1, 10, 1, -1)});

        float elapsedTime = .001f;
        int steps = 1000;
        float[] output = new float[steps];
        for (int i = 0; i < steps; i++) {
            output[i] = noise.getValue(i*elapsedTime, (i+1)*elapsedTime, 1);
        }

        Plotter.plot(output, "noise");
    }
View Full Code Here

Examples of jm.audio.synth.Noise

    /**
     * This method is automatically called on startup to initialise
     * any AudioObjects used by this instrument
     */
    public void createChain() {
        Noise osc = new Noise(this, Noise.WHITE_NOISE, this.sampleRate,
                this.channels);
        Envelope env = new Envelope(osc, new double[]{0.0, 0.0, 0.1, 1.0, 0.3, 0.0});
        Comb comb = new Comb(env, delay, decay);
        SampleOut sout = new SampleOut(comb);
    }
View Full Code Here

Examples of net.anzix.fsz.voxelworld.features.components.Noise

* @author csiga
*/
public class Cave extends BasicFeature {

    public Cave() {
        rockNoise = new Noise(3, 0.02, 1);
    }
View Full Code Here

Examples of net.anzix.fsz.voxelworld.features.components.Noise

* @author kovacsandras
*/
public class FlyingMountain extends BasicFeature {

    public FlyingMountain() {
        rockNoise = new Noise(3, 0.005, 2);
    }
View Full Code Here

Examples of net.anzix.fsz.voxelworld.features.components.Noise

public class HighTree extends BasicFeature {

    public HighTree(Vector3 center, double radius) {
        this.center = center;
        this.radius = radius;
        trunkNoise = new Noise(1, 0.5, 1);
    }
View Full Code Here

Examples of net.anzix.fsz.voxelworld.features.components.Noise

    }
    private Noise roughRockNoise;
    private Noise fineRockNoise;
   
    public LayerBasedTerrain() {
        fineRockNoise = new Noise(3, 0.1, 10);
        roughRockNoise = new Noise(3, 0.01, 1);
    }
View Full Code Here

Examples of net.anzix.fsz.voxelworld.features.components.Noise

            return true;
            //p.y == -1 || p.y == 0 || p.y == 1;
    }

    public RockyMountain() {
        rockNoise = new Noise(3, 0.01, 1);
        rockNoise2 = new Noise(3, 0.1, .5);
        rockFloor = new Floor(0,132);
        sandFloor = new Floor(-5,5);


        //testObject2 = new Sphere(new Vector3(120,30,120),30);
View Full Code Here

Examples of org.hibernate.test.annotations.inheritance.singletable.Noise

    s = openSession();
    tx = s.beginTransaction();
    Rock guns = new Rock();
    guns.setAvgBeat( 90 );
    guns.setType( 2 );
    Noise white = new Noise();
    white.setAvgBeat( 0 );
    white.setType( null );

    s.persist( guns );
    s.persist( white );
    tx.commit();
    s.close();

    s = openSession();
    tx = s.beginTransaction();
    List result = s.createCriteria( Noise.class ).list();
    assertNotNull( result );
    assertEquals( 1, result.size() );
    white = (Noise) result.get( 0 );
    assertNull( white.getType() );
    s.delete( white );
    result = s.createCriteria( Rock.class ).list();
    assertEquals( 1, result.size() );
    s.delete( result.get( 0 ) );
    result = s.createCriteria( Funk.class ).list();
View Full Code Here

Examples of org.hibernate.test.annotations.inheritance.singletable.Noise

    s = openSession();
    tx = s.beginTransaction();
    Rock guns = new Rock();
    guns.setAvgBeat( 90 );
    guns.setType( 2 );
    Noise white = new Noise();
    white.setAvgBeat( 0 );
    white.setType( null );

    s.persist( guns );
    s.persist( white );
    tx.commit();
    s.close();

    s = openSession();
    tx = s.beginTransaction();
    List result = s.createCriteria( Noise.class ).list();
    assertNotNull( result );
    assertEquals( 1, result.size() );
    white = (Noise) result.get( 0 );
    assertNull( white.getType() );
    s.delete( white );
    result = s.createCriteria( Rock.class ).list();
    assertEquals( 1, result.size() );
    s.delete( result.get( 0 ) );
    result = s.createCriteria( Funk.class ).list();
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.