Examples of membership()


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 series to dataSet
      xyDataset.addSeries(series);
    }
View Full Code Here

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

  /** Evaluate 'termName' membershipfunction at 'value' */
  public double getMembership(String termName) {
    MembershipFunction mf = getMembershipFunction(termName);
    if( mf == null ) throw new RuntimeException("No such termName: \"" + termName + "\"");
    return mf.membership(this.value);
  }

  /** Get 'termName' membershipfunction */
  public MembershipFunction getMembershipFunction(String termName) {
    LinguisticTerm lt = (LinguisticTerm) linguisticTerms.get(termName);
View Full Code Here

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

      for( i = 0; i < size; i++ ) {
        // Get 'x' value
        x = mfd.valueX(i);

        // 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()

        // Get 'x' value
        x = mfd.valueX(i);

        // 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 = variable.getRuleAggregationMethod().aggregate(defuzzifierDiscrete.getDiscreteValue(x), y);
View Full Code Here

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 = variable.getRuleAggregationMethod().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.MembershipFunction.membership()

  /** Evaluate 'termName' membershipfunction at 'value' */
  public double getMembership(String termName) {
    MembershipFunction mf = getMembershipFunction(termName);
    if( mf == null ) throw new RuntimeException("No such termName: \"" + termName + "\"");
    return mf.membership(value);
  }

  /** Get 'termName' membershipfunction */
  public MembershipFunction getMembershipFunction(String termName) {
    LinguisticTerm lt = linguisticTerms.get(termName);
View Full Code Here

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

      for( i = 0; i < size; i++ ) {
        // Get 'x' value
        x = mfd.valueX(i);

        // 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()

        // Get 'x' value
        x = mfd.valueX(i);

        // 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(defuzzifierDiscrete.getDiscreteValue(x), y);
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.