Examples of activate()


Examples of com.neuralnetwork.shared.functions.IActivationFunction.activate()

     *      the expected output from the sigmoid function
     */
    private void testValue(final double input, final double expected) {
        LOGGER.debug("===== Sigmoid Function Test. =====");
        IActivationFunction f = new SigmoidFunction();
        double v = f.activate(input);
        LOGGER.debug(" Input: " + input);
        LOGGER.debug(" Value: " + v);
        LOGGER.debug(" Expected: " + expected);
        assertEquals(v, expected , DELTA * Math.ulp(expected));
        LOGGER.debug("==================================");
View Full Code Here

Examples of com.neuralnetwork.shared.functions.LinearFunction.activate()

  @Test
  public final void testLinearFunction() {
    LinearFunction f = new LinearFunction();
    assertNotNull(f);
    for (int i = 0; i < NUM_ITER; i++) {
      assertEquals(f.activate(i), i, ACCUR * Math.ulp(i));
      assertEquals(f.derivative(i), 1, ACCUR * Math.ulp(i));
    }

    f.changeFunction(FunctionType.NULL);
   
 
View Full Code Here

Examples of com.neuralnetwork.shared.functions.SigmoidFunction.activate()

     *      the expected output from the sigmoid function
     */
    private void testValue(final double input, final double expected) {
        LOGGER.debug("===== Sigmoid Function Test. =====");
        IActivationFunction f = new SigmoidFunction();
        double v = f.activate(input);
        LOGGER.debug(" Input: " + input);
        LOGGER.debug(" Value: " + v);
        LOGGER.debug(" Expected: " + expected);
        assertEquals(v, expected , DELTA * Math.ulp(expected));
        LOGGER.debug("==================================");
View Full Code Here

Examples of com.nokia.dempsy.container.internal.LifecycleHelper.activate()

      InvocationTestMP instance = (InvocationTestMP)invoker.newInstance();
      assertNotNull("instantiation failed; null instance", instance);
      assertNotSame("instantiation failed; returned prototype", prototype, instance);

      assertFalse("instance activated before activation method called", instance.isActivated);
      assertTrue(invoker.activate(instance, null, "ABC".getBytes()));
      assertTrue("instance was not activated", instance.isActivated);
      assertEquals("ABC", instance.activationValue);

      assertFalse("instance passivated before passivation method called", instance.isPassivated);
      byte[] data = invoker.passivate(instance);
View Full Code Here

Examples of com.openbravo.pos.ticket.ProductFilterSales.activate()

       
        jScrollPane1.getVerticalScrollBar().setPreferredSize(new Dimension(35, 35));

        //ProductFilter jproductfilter = new ProductFilter(app);
        ProductFilterSales jproductfilter = new ProductFilterSales(dlSales, m_jKeys);
        jproductfilter.activate();
        m_jProductSelect.add(jproductfilter, BorderLayout.CENTER);
        switch (productsType) {
            case PRODUCT_NORMAL:
                lpr = new ListProviderCreator(dlSales.getProductListNormal(), jproductfilter);
                break;
View Full Code Here

Examples of com.orientechnologies.orient.server.OServer.activate()

      OGlobalConfiguration.RID_BAG_SBTREEBONSAI_TO_EMBEDDED_THRESHOLD.setValue(20);

      OServer server = OServerMain.create();
      server.startup(RemoteDBRunner.class
          .getResourceAsStream("/com/orientechnologies/orient/core/storage/impl/local/paginated/db-linkbag-crash-config.xml"));
      server.activate();
      while (true)
        ;
    }
  }
View Full Code Here

Examples of com.ourlinc.conference.book.Book.activate()

   * @param id
   * @return 返回激活后的预定信息
   */
  public Book activateBook(String id) {
    Book book = getBook(id);
    book.activate();
    return book;
  }
 
  /**
   * 根据ID获取预定信息
 
View Full Code Here

Examples of com.saasovation.identityaccess.domain.model.identity.Tenant.activate()

    @Transactional
    public void activateTenant(ActivateTenantCommand aCommand) {
        Tenant tenant = this.existingTenant(aCommand.getTenantId());

        tenant.activate();
    }

    @Transactional
    public void addGroupToGroup(AddGroupToGroupCommand aCommand) {
        Group parentGroup =
View Full Code Here

Examples of com.sissi.ucenter.relation.muc.MucRelation.activate()

  }

  @Override
  public boolean input(JIDContext context, Protocol protocol) {
    MucRelation relation = super.ourRelation(context.jid(), super.build(protocol.parent().getTo())).cast(MucRelation.class);
    return relation.activate() && !relation.outcast() ? true : this.proxy.input(context, protocol.parent());
  }
}
View Full Code Here

Examples of com.sissi.ucenter.relation.roster.RosterRelation.activate()

  @Override
  public RelationCascade update(JID master, JID slave) {
    RosterRelation relation = this.ourRelation.ourRelation(master, slave).cast(RosterRelation.class);
    // 激活则广播
    if (relation.activate()) {
      this.broadcastProtocol.broadcast(master, new IQ().setId(UUID.randomUUID().toString()).add(new Roster(new GroupItem(relation))).setType(ProtocolType.SET));
    }
    return this;
  }
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.