Examples of membership()


Examples of net.sourceforge.jFuzzyLogic.membership.MembershipFunction.membership()

      int i, length = defuzzifierContinuous.getLength();

      // Add membershipfunction to deffuzifier
      for( i = 0; i < length; i++, x += step ) {
        // Is term negated?
        if( fuzzyRuleTerm.isNegated() ) membership = 1 - mf.membership(x);
        else membership = mf.membership(x);

        y = imply(degreeOfSupport, membership); // Call to abstract implication method described above

        // Aggregate value
View Full Code Here

Examples of net.sourceforge.jFuzzyLogic.membership.MembershipFunction.membership()

      // Add membershipfunction to deffuzifier
      for( i = 0; i < length; i++, x += step ) {
        // Is term negated?
        if( fuzzyRuleTerm.isNegated() ) membership = 1 - mf.membership(x);
        else membership = mf.membership(x);

        y = imply(degreeOfSupport, membership); // Call to abstract implication method described above

        // Aggregate value
        aggregated = ruleAccumulationMethod.aggregate(defuzzifierContinuous.getValue(i), y);
View Full Code Here

Examples of net.sourceforge.jFuzzyLogic.membership.MembershipFunction.membership()

      } else {
        // Continuous case: Add every membershipfunction's point
        numberOfPoints = PlotWindow.DEFAULT_CHART_NUMBER_OF_POINTS;
        double xx = universeMin;
        for( int i = 0; i < numberOfPoints; i++, xx += step )
          series.add(xx, membershipFunction.membership(xx));
      }

      // Add serie to dataSet
      xyDataset.addSeries(series);
    }
View Full Code Here

Examples of net.sourceforge.jFuzzyLogic.membership.MembershipFunctionDiscrete.membership()

      if( membershipFunction.isDiscrete() ) {
        // Discrete case: Evaluate membership function and add points to dataset
        MembershipFunctionDiscrete membershipFunctionDiscrete = (MembershipFunctionDiscrete) membershipFunction;
        numberOfPoints = membershipFunctionDiscrete.size();
        for( int i = 0; i < numberOfPoints; i++ )
          series.add(membershipFunctionDiscrete.valueX(i), membershipFunctionDiscrete.membership(i));
      } else {
        // Continuous case: Add every membershipfunction's point
        numberOfPoints = PlotWindow.DEFAULT_CHART_NUMBER_OF_POINTS;
        double xx = universeMin;
        for( int i = 0; i < numberOfPoints; i++, xx += step )
View Full Code Here

Examples of net.sourceforge.jFuzzyLogic.membership.MembershipFunctionDiscrete.membership()

      if( membershipFunction.isDiscrete() ) {
        // Discrete case: Evaluate membership function and add points to dataset
        MembershipFunctionDiscrete membershipFunctionDiscrete = (MembershipFunctionDiscrete) membershipFunction;
        numberOfPoints = membershipFunctionDiscrete.size();
        for( int i = 0; i < numberOfPoints; i++ )
          series.add(membershipFunctionDiscrete.valueX(i), membershipFunctionDiscrete.membership(i));
      } else {
        // Continuous case: Add every membershipfunction's point
        numberOfPoints = PlotWindow.DEFAULT_CHART_NUMBER_OF_POINTS;
        double xx = universeMin;
        for( int i = 0; i < numberOfPoints; i++, xx += step )
View Full Code Here

Examples of net.sourceforge.jFuzzyLogic.membership.MembershipFunctionDiscrete.membership()

      if( membershipFunction.isDiscrete() ) {
        // Discrete case: Evaluate membership function and add points to dataset
        MembershipFunctionDiscrete membershipFunctionDiscrete = (MembershipFunctionDiscrete) membershipFunction;
        numberOfPoints = membershipFunctionDiscrete.size();
        for( int i = 0; i < numberOfPoints; i++ )
          series.add(membershipFunctionDiscrete.valueX(i), membershipFunctionDiscrete.membership(i));
      } else {
        // Continuous case: Add every membershipfunction's point
        numberOfPoints = PlotWindow.DEFAULT_CHART_NUMBER_OF_POINTS;
        double xx = universeMin;
        for( int i = 0; i < numberOfPoints; i++, xx += step )
View Full Code Here

Examples of org.sonar.core.permission.PermissionQuery.membership()

    verify(finder).findUsersWithPermission(argumentCaptor.capture());

    PermissionQuery query = argumentCaptor.getValue();
    assertThat(query.component()).isEqualTo("org.sample.Sample");
    assertThat(query.permission()).isEqualTo("user");
    assertThat(query.membership()).isEqualTo(PermissionQuery.ANY);
  }

  @Test
  public void find_groups_with_permissions() throws Exception {
    service.findGroupsWithPermission(ImmutableMap.<String, Object>of(
View Full Code Here

Examples of org.sonar.core.permission.PermissionQuery.membership()

    verify(finder).findGroupsWithPermission(argumentCaptor.capture());

    PermissionQuery query = argumentCaptor.getValue();
    assertThat(query.component()).isEqualTo("org.sample.Sample");
    assertThat(query.permission()).isEqualTo("admin");
    assertThat(query.membership()).isEqualTo(PermissionQuery.ANY);
  }

  @Test
  public void add_global_user_permission() throws Exception {
    params = buildPermissionChangeParams("user", null, GlobalPermissions.DASHBOARD_SHARING);
View Full Code Here

Examples of org.sonar.core.permission.PermissionQuery.membership()

    assertThat(query.component()).isEqualTo("org.sample.Sample");
    assertThat(query.template()).isEqualTo("my_template_key");
    assertThat(query.search()).isEqualTo("text");
    assertThat(query.pageSize()).isEqualTo(50);
    assertThat(query.pageIndex()).isEqualTo(2);
    assertThat(query.membership()).isEqualTo(PermissionQuery.ANY);
  }

  @Test
  public void to_query_with_include_membership_parameter() throws Exception {
    Map<String, Object> params = newHashMap();
View Full Code Here

Examples of org.sonar.core.qualitygate.db.ProjectQgateAssociationQuery.membership()

        + "{'id':24,'name':'Project Two','selected':true}"
        + "]}");
    ArgumentCaptor<ProjectQgateAssociationQuery> queryCaptor = ArgumentCaptor.forClass(ProjectQgateAssociationQuery.class);
    verify(projectFinder).find(queryCaptor.capture());
    ProjectQgateAssociationQuery query = queryCaptor.getValue();
    assertThat(query.membership()).isEqualTo(ProjectQgateAssociationQuery.ANY);
  }

  @Test
  public void search_nominal() throws Exception {
    long gateId = 12345L;
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.