Examples of GaussianFunction


Examples of org.encog.mathutil.rbf.GaussianFunction

    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);
    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.mathutil.rbf.GaussianFunction

   *            The width.
   */
  public void setRBFFunction(final int index, final RBFEnum t,
      final double[] centers, final double width) {
    if (t == RBFEnum.Gaussian) {
      this.flat.getRBF()[index] = new GaussianFunction(0.5, centers,
          width);
    } else if (t == RBFEnum.Multiquadric) {
      this.flat.getRBF()[index] = new MultiquadricFunction(0.5, centers,
          width);
    } else if (t == RBFEnum.InverseMultiquadric) {
View Full Code Here

Examples of org.encog.mathutil.rbf.GaussianFunction

    widthArray[0] = 1;
    widthArray[1] = 1;

    switch (type) {
    case Gaussian:
      this.rbf = new GaussianFunction(2);
      break;
    case InverseMultiquadric:
      this.rbf = new InverseMultiquadricFunction(2);
      break;
    case Multiquadric:
View Full Code Here

Examples of org.encog.mathutil.rbf.GaussianFunction

   * @param type The RBF type to use.
   */
  public NeighborhoodRBF(final int[] size, final RBFEnum type) {
    switch (type) {
    case Gaussian:
      this.rbf = new GaussianFunction(size.length);
      break;
    case InverseMultiquadric:
      this.rbf = new InverseMultiquadricFunction(size.length);
      break;
    case Multiquadric:
View Full Code Here

Examples of org.encog.mathutil.rbf.GaussianFunction

  public NeighborhoodRBF1D(final RBFEnum type) {

    switch(type)
    {
      case Gaussian:
        this.radial = new GaussianFunction(1);
        break;
      case InverseMultiquadric:
        this.radial = new InverseMultiquadricFunction(1);
        break;
      case Multiquadric:
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.