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

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


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


 
  public NeighborhoodFunction getNeighborhoodFunction() {
    switch( neighborhoodType.getSelectedIndex() )
    {
      case 0:
        return new NeighborhoodRBF1D( new GaussianFunction(0,1,this.rbfWidth.getValue()));
      case 1:
        return new NeighborhoodRBF1D( new MexicanHatFunction(0,1,this.rbfWidth.getValue()));
      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:
View Full Code Here

    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

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

    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

TOP

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

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.