Examples of function()


Examples of org.encog.neural.som.training.basic.neighborhood.NeighborhoodRBF1D.function()

  public void testGaussian() throws Throwable {
    RadialBasisFunction radial = new GaussianFunction(0.0,1.0,1.0);
    NeighborhoodRBF1D bubble = new NeighborhoodRBF1D(radial);
    Assert.assertEquals(0.0, bubble.function(5, 0),0.1);
    Assert.assertEquals(1.0, bubble.function(5, 5),0.1);
    Assert.assertEquals(0.6, bubble.function(5, 4),0.1);
  }

}
View Full Code Here

Examples of org.encog.neural.som.training.basic.neighborhood.NeighborhoodSingle.function()

  }
 
  public void testSingle() throws Throwable {
    NeighborhoodSingle bubble = new NeighborhoodSingle();
    Assert.assertEquals(0.0, bubble.function(5, 0),0.1);
    Assert.assertEquals(1.0, bubble.function(5, 5),0.1)
  }
 
  public void testGaussian() throws Throwable {
    RadialBasisFunction radial = new GaussianFunction(0.0,1.0,1.0);
    NeighborhoodRBF1D bubble = new NeighborhoodRBF1D(radial);
View Full Code Here

Examples of org.encog.neural.som.training.basic.neighborhood.NeighborhoodSingle.function()

    Assert.assertEquals(1.0, bubble.function(5, 5),0.1);
  }
 
  public void testSingle() throws Throwable {
    NeighborhoodSingle bubble = new NeighborhoodSingle();
    Assert.assertEquals(0.0, bubble.function(5, 0),0.1);
    Assert.assertEquals(1.0, bubble.function(5, 5),0.1)
  }
 
  public void testGaussian() throws Throwable {
    RadialBasisFunction radial = new GaussianFunction(0.0,1.0,1.0);
View Full Code Here

Examples of org.geotools.filter.FilterFactoryImpl.function()

        Feature f = SimpleFeatureBuilder.build(type, new Object[] { "testFeature1", geom1 }, null);
       
        Geometry geom2 = reader.read("LINESTRING(10 0 0, 0 10 10)");
        Literal literal_geom = ff.literal(geom2);

        Function exp = ff.function("disjoint3D", ff.property("geom"), literal_geom);
        Object value = exp.evaluate(f);
        assertTrue(value instanceof Boolean);
        assertTrue(! (Boolean) value);
    }
}
View Full Code Here

Examples of org.geotools.filter.FunctionFactory.function()

                }
            }
        }
       
        assertNotNull(factory);
        Function f = factory.function("foo", null, null);
        assertNotNull(f);
    }
   
    /**
     * GEOT-3841
 
View Full Code Here

Examples of org.hisrc.jscm.codemodel.JSCodeModel.function()

    newExpressions.expression(x._new());

    JSBlock memberExpressions = newExpressions.block();

    memberExpressions.expression(codeModel.function());
    JSFunctionExpression.Function foo = codeModel.function("foo");
    JSVariable a = foo.parameter("a");
    JSVariable b = foo.parameter("b");
    JSVariable c = foo.parameter("c");
    foo.getBody().expression(a.plus(b));
View Full Code Here

Examples of org.hisrc.jscm.codemodel.JSCodeModel.function()

    newExpressions.expression(x._new());

    JSBlock memberExpressions = newExpressions.block();

    memberExpressions.expression(codeModel.function());
    JSFunctionExpression.Function foo = codeModel.function("foo");
    JSVariable a = foo.parameter("a");
    JSVariable b = foo.parameter("b");
    JSVariable c = foo.parameter("c");
    foo.getBody().expression(a.plus(b));
    foo.getBody()._return(c);
View Full Code Here

Examples of org.hisrc.jscm.codemodel.impl.CodeModelImpl.function()

    newExpressions.expression(x._new());

    JSBlock memberExpressions = newExpressions.block();

    memberExpressions.expression(codeModel.function());
    JSFunctionExpression.Function foo = codeModel.function("foo");
    JSVariable a = foo.parameter("a");
    JSVariable b = foo.parameter("b");
    JSVariable c = foo.parameter("c");
    foo.getBody().expression(a.plus(b));
View Full Code Here

Examples of org.hisrc.jscm.codemodel.impl.CodeModelImpl.function()

    newExpressions.expression(x._new());

    JSBlock memberExpressions = newExpressions.block();

    memberExpressions.expression(codeModel.function());
    JSFunctionExpression.Function foo = codeModel.function("foo");
    JSVariable a = foo.parameter("a");
    JSVariable b = foo.parameter("b");
    JSVariable c = foo.parameter("c");
    foo.getBody().expression(a.plus(b));
    foo.getBody()._return(c);
View Full Code Here

Examples of org.opengis.filter.FilterFactory.function()

        final FilterFactory ff = CommonFactoryFinder.getFilterFactory(null);
        request.setEnv(Collections.singletonMap("myParam", 23));
        DummyRasterMapProducer producer = new DummyRasterMapProducer() {
            @Override
            public void produceMap() throws WmsException {
                assertEquals(23, ff.function("env", ff.literal("myParam")).evaluate(null));
                assertEquals(10, ff.function("env", ff.literal("otherParam"), ff.literal(10)).evaluate(null));
            }
        };
        response = new GetMapResponse(Collections.singleton((GetMapProducer) producer));
        response.execute(request);
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.