Package net.sourceforge.jFuzzyLogic.membership

Examples of net.sourceforge.jFuzzyLogic.membership.MembershipFunctionDiscrete


      // Create a series and add points
      XYSeries series = new XYSeries(termName);
      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


    if( mf.isDiscrete() ) {
      //---
      // Discrete case
      //---
      DefuzzifierDiscrete defuzzifierDiscrete = (DefuzzifierDiscrete) defuzzifier;
      MembershipFunctionDiscrete mfd = (MembershipFunctionDiscrete) mf;

      // Add membershipfunction to deffuzifier
      int i, size = mfd.size();
      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);
View Full Code Here

      // Create a series and add points
      XYSeries series = new XYSeries(termName);
      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

    if( mf.isDiscrete() ) {
      //---
      // Discrete case
      //---
      DefuzzifierDiscrete defuzzifierDiscrete = (DefuzzifierDiscrete) defuzzifier;
      MembershipFunctionDiscrete mfd = (MembershipFunctionDiscrete) mf;

      // Add membershipfunction to deffuzifier
      int i, size = mfd.size();
      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);
View Full Code Here

      // Create a series and add points
      XYSeries series = new XYSeries(termName);
      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

TOP

Related Classes of net.sourceforge.jFuzzyLogic.membership.MembershipFunctionDiscrete

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.