Examples of GaussianFunction


Examples of com.heatonresearch.aifh.general.fns.GaussianFunction

        this.rbf = new FnRBF[rbfCount];

        for (int i = 0; i < rbfCount; i++) {
            final int rbfIndex = inputWeightCount + ((inputCount + 1) * i);
            this.rbf[i] = new GaussianFunction(inputCount, this.longTermMemory, rbfIndex);
        }
    }
View Full Code Here

Examples of com.heatonresearch.aifh.general.fns.GaussianFunction

        this.rbf = new FnRBF[rbfCount];

        for (int i = 0; i < rbfCount; i++) {
            final int rbfIndex = inputWeightCount + ((inputCount + 1) * i);
            this.rbf[i] = new GaussianFunction(inputCount, this.longTermMemory, rbfIndex);
        }
    }
View Full Code Here

Examples of org.encog.mathutil.rbf.GaussianFunction

   *            The width.
   */
  public final 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

    //this.add(this.weightInfo,BorderLayout.NORTH);
   
    //
    double[] center = { 0.0 };

    this.rbf = new GaussianFunction(1.0,center,1.0);
   
    XYDataset dataset = this.createDataset();
    JFreeChart chart = this.createChart(dataset);
    this.chartPanel = new EncogChartPanel(chart);
    this.add(chartPanel,BorderLayout.CENTER);
View Full Code Here

Examples of org.encog.mathutil.rbf.GaussianFunction

      double[] center = { 0.0 };     
           
      switch(index) {
        case 0:
          this.rbf = new GaussianFunction(1.0,center,1.0);
          break;
        case 1:
          this.rbf = new MultiquadricFunction(1.0,center,1.0);
          break;
        case 2:
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(2);
      break;
    case InverseMultiquadric:
      this.rbf = new InverseMultiquadricFunction(2);
      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

Examples of org.encog.mathutil.rbf.GaussianFunction

 
  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:
View Full Code Here

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