Package org.encog.engine.network.activation

Examples of org.encog.engine.network.activation.ActivationBiPolar


    return 1;
  }
 
  private ActivationFunction allocateAF(String name) {
    if (name.equalsIgnoreCase(MLActivationFactory.AF_BIPOLAR)) {
      return new ActivationBiPolar();
    }

    if (name.equalsIgnoreCase(MLActivationFactory.AF_COMPETITIVE)) {
      return new ActivationCompetitive();
    }
View Full Code Here


public class TestActivationBiPolar extends TestCase {
 
  @Test
  public void testBiPolar() throws Throwable
  {
    ActivationBiPolar activation = new ActivationBiPolar();
    Assert.assertTrue(activation.hasDerivative());
   
    ActivationBiPolar clone = (ActivationBiPolar)activation.clone();
    Assert.assertNotNull(clone);
   
    double[] input = { 0.5, -0.5 };
   
    activation.activationFunction(input,0,input.length);
View Full Code Here

    boolean der = this.derivative.isSelected();
    ActivationFunction newActivation = null;
   
    switch (this.select.getSelectedIndex()) {
    case 0:
      newActivation = new ActivationBiPolar();
      break;
    case 1:
      newActivation = new ActivationCompetitive();
      break;
    case 2:
View Full Code Here

    return 1;
  }
 
  private ActivationFunction allocateAF(String name) {
    if (name.equalsIgnoreCase(MLActivationFactory.AF_BIPOLAR)) {
      return new ActivationBiPolar();
    }

    if (name.equalsIgnoreCase(MLActivationFactory.AF_COMPETITIVE)) {
      return new ActivationCompetitive();
    }
View Full Code Here

public class TestActivationBiPolar extends TestCase {
 
  @Test
  public void testBiPolar() throws Throwable
  {
    ActivationBiPolar activation = new ActivationBiPolar();
    Assert.assertTrue(activation.hasDerivative());
   
    ActivationBiPolar clone = (ActivationBiPolar)activation.clone();
    Assert.assertNotNull(clone);
   
    double[] input = { 0.5, -0.5 };
   
    activation.activationFunction(input,0,input.length);
View Full Code Here

TOP

Related Classes of org.encog.engine.network.activation.ActivationBiPolar

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.