Package org.encog.neural.som.training.basic.neighborhood

Examples of org.encog.neural.som.training.basic.neighborhood.NeighborhoodBubble


    }

    NeighborhoodFunction nf = null;

    if (neighborhoodStr.equalsIgnoreCase("bubble")) {
      nf = new NeighborhoodBubble(1);
    } else if (neighborhoodStr.equalsIgnoreCase("rbf")) {
      final String str = holder.getString(
          MLTrainFactory.PROPERTY_DIMENSIONS, true, null);
      final int[] size = NumberList.fromListInt(CSVFormat.EG_FORMAT, str);
      nf = new NeighborhoodRBF(size, t);
View Full Code Here


      case 2:
        return new NeighborhoodRBF1D( new MultiquadricFunction(0,1,this.rbfWidth.getValue()));
      case 3:
        return new NeighborhoodRBF1D( new InverseMultiquadricFunction(0,1,this.rbfWidth.getValue()));
      case 4:
        return new NeighborhoodBubble( (int)this.rbfWidth.getValue() );
      case 5:
        return new NeighborhoodSingle( );
      case 6:
        return new NeighborhoodRBF(RBFEnum.Gaussian, this.cols.getValue(), this.rows.getValue());
      case 7:
View Full Code Here

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);
  }
View Full Code Here

    }

    NeighborhoodFunction nf = null;

    if (neighborhoodStr.equalsIgnoreCase("bubble")) {
      nf = new NeighborhoodBubble(1);
    } else if (neighborhoodStr.equalsIgnoreCase("rbf")) {
      final String str = holder.getString(
          MLTrainFactory.PROPERTY_DIMENSIONS, true, null);
      final int[] size = NumberList.fromListInt(CSVFormat.EG_FORMAT, str);
      nf = new NeighborhoodRBF(size, t);
View Full Code Here

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);
  }
View Full Code Here

TOP

Related Classes of org.encog.neural.som.training.basic.neighborhood.NeighborhoodBubble

Copyright © 2018 www.massapicom. 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.