Examples of function()


Examples of de.lmu.ifi.dbs.elki.data.ParameterizationFunction.function()

    double d_min = Double.POSITIVE_INFINITY;
    double d_max = Double.NEGATIVE_INFINITY;
    for(DBID id : relation.iterDBIDs()) {
      ParameterizationFunction f = relation.get(id);
      HyperBoundingBox minMax = f.determineAlphaMinMax(box);
      double f_min = f.function(SpatialUtil.getMin(minMax));
      double f_max = f.function(SpatialUtil.getMax(minMax));

      d_min = Math.min(d_min, f_min);
      d_max = Math.max(d_max, f_max);
    }
View Full Code Here

Examples of de.lmu.ifi.dbs.elki.data.ParameterizationFunction.function()

    double d_max = Double.NEGATIVE_INFINITY;
    for(DBID id : relation.iterDBIDs()) {
      ParameterizationFunction f = relation.get(id);
      HyperBoundingBox minMax = f.determineAlphaMinMax(box);
      double f_min = f.function(SpatialUtil.getMin(minMax));
      double f_max = f.function(SpatialUtil.getMax(minMax));

      d_min = Math.min(d_min, f_min);
      d_max = Math.max(d_max, f_max);
    }
    return new double[] { d_min, d_max };
View Full Code Here

Examples of javax.persistence.criteria.CriteriaBuilder.function()

        if (direction == Direction.ASC) {
          orderList.add(cb.asc(path));
        } else if (direction == Direction.DESC) {
          orderList.add(cb.desc(path));
        } else if (direction == Direction.ASC_TRUNC) {
          orderList.add(cb.asc(cb.function("trunc", Path.class, path)));
        } else if (direction == Direction.DESC_TRUNC) {
          orderList.add(cb.desc(cb.function("trunc", Path.class, path)));
        }
      }
      cq.orderBy(orderList);
View Full Code Here

Examples of javax.persistence.criteria.CriteriaBuilder.function()

        } else if (direction == Direction.DESC) {
          orderList.add(cb.desc(path));
        } else if (direction == Direction.ASC_TRUNC) {
          orderList.add(cb.asc(cb.function("trunc", Path.class, path)));
        } else if (direction == Direction.DESC_TRUNC) {
          orderList.add(cb.desc(cb.function("trunc", Path.class, path)));
        }
      }
      cq.orderBy(orderList);
    }
View Full Code Here

Examples of kodkod.ast.Relation.function()

      final RelationPredicate.Function fp = (RelationPredicate.Function) pred;
      final Expression domain = fp.domain().accept(this);
      final Expression range = fp.range().accept(this);
      ret = (r==fp.relation() && domain==fp.domain() && range==fp.range()) ?
          fp :
          (fp.targetMult()==Multiplicity.ONE ? r.function(domain, range) : r.partialFunction(domain,range));
      break;
    case TOTAL_ORDERING :
      final RelationPredicate.TotalOrdering tp = (RelationPredicate.TotalOrdering) pred;
      final Relation ordered = (Relation) tp.ordered().accept(this);
      final Relation first = (Relation)tp.first().accept(this);
View Full Code Here

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

public class TestNeighborhood extends TestCase {
 
  public void testBubble() throws Throwable
  {
    NeighborhoodBubble bubble = new NeighborhoodBubble(2);
    Assert.assertEquals(0.0, bubble.function(5, 0),0.1);
    Assert.assertEquals(1.0, bubble.function(5, 4),0.1);
    Assert.assertEquals(1.0, bubble.function(5, 5),0.1);
  }
 
  public void testSingle() throws Throwable {
View Full Code Here

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

 
  public void testBubble() throws Throwable
  {
    NeighborhoodBubble bubble = new NeighborhoodBubble(2);
    Assert.assertEquals(0.0, bubble.function(5, 0),0.1);
    Assert.assertEquals(1.0, bubble.function(5, 4),0.1);
    Assert.assertEquals(1.0, bubble.function(5, 5),0.1);
  }
 
  public void testSingle() throws Throwable {
    NeighborhoodSingle bubble = new NeighborhoodSingle();
View Full Code Here

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

  public void testBubble() throws Throwable
  {
    NeighborhoodBubble bubble = new NeighborhoodBubble(2);
    Assert.assertEquals(0.0, bubble.function(5, 0),0.1);
    Assert.assertEquals(1.0, bubble.function(5, 4),0.1);
    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);
View Full Code Here

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.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
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.