Ingeniera del Conocimiento - PowerPoint PPT Presentation

1 / 9
About This Presentation
Title:

Ingeniera del Conocimiento

Description:

double xValue[] = { 5, 15, 25, 35 }; double yValue[] = { 0, 1, 1, 0 } ... double showerTemp = 45.0; ... double crispHotValveChange = hotValveChangeFval.momentDefuzzify ... – PowerPoint PPT presentation

Number of Views:59
Avg rating:3.0/5.0
Slides: 10
Provided by: infoa9
Category:

less

Transcript and Presenter's Notes

Title: Ingeniera del Conocimiento


1
Ingeniería del Conocimiento
  • Práctica 2
  • Luis de la Ossa

2
Creación de Conjuntos Difusos I
  • A partir de un conjunto de puntos  
  • double yValues 0, 1, 0.65, 1, 0
  • double xValues 0.1, 0.3, 0.4, 0.5, 0.8
  • FuzzySet fSet new FuzzySet( xValues, yValues,
    5 )

3
Creación de Conjuntos Difusos II
  • Existen conjuntos predefinidos  
  • FuzzySet fSet new triangleFuzzySet( 0.3, 0.5,
    0.7 )

4
Creación de variables I
  • FuzzyVariable temp new FuzzyVariable("temperatur
    e", 0, 100, "C")
  • double xHot 25, 35
  • double yHot 0, 1
  • double xCold 5, 15
  • double yCold 1, 0
  • double xMedium 5, 15, 25, 35
  • double yMedium 0, 1, 1, 0
  • temp.addTerm("hot", xHot, yHot, 2)   
  • temp.addTerm("cold", xCold, yCold, 2)
  • temp.addTerm("medium", xMedium,yMedium,4)

5
Creación de variables II
  • FuzzyVariable temp new FuzzyVariable("temperatur
    e", 0, 100, "C")
  • temp.addTerm("hot", new TrapezoidFuzzySet(0,0,5,15
    ))   
  • temp.addTerm("cold", new TrapezoidFuzzySet(5,15,25
    ,35))
  • temp.addTerm("medium", new TrapezoidFuzzySet(25,35
    ,100,100))

6
Creación de valores difusos I
  • double xValue 5, 15, 25, 35
  • double yValue 0, 1, 1, 0
  • inputTemp new FuzzyValue(temp,xTemp,yTemp,4)
  • double showerTemp 45.0
  • inputTemp   new FuzzyValue(temp, new
    TriangleFuzzySet (showerTemp-0.05, showerTemp,
    showerTemp0.05))
  •  

7
Creación de valores difusos II
  •    fval new FuzzyValue(temp, "very hot or
    cold") System.out.println(fval)
  •  FuzzyVariable      -gt temperature 0.0, 100.0
    C
  • Linguistic Expression -gt very hot or cold
  • FuzzySet -gt 1/5 0/15 0/25 0.01/26

8
Modificadores
  • Not
  • Norm
  • More_Or_Less
  • Somewhat
  • Plus   
  • Se pueden usar para crear valores
  • fval new FuzzyValue(temp, "very hot or
    cold") System.out.println(fval)
  • Y para crear conjuntos en las variables
  • temp.addTerm("medium", "not hot and not
    cold")

9
Creación de reglas
  • FuzzyRule hotLow new FuzzyRule()
  • hotLow.addAntecedent(new FuzzyValue(temp,"hot"))
  • hotLow.addConclusion(new FuzzyValue(coldValveChan
    ge,"PB"))
  • inputTemp   new FuzzyValue(temp, new
    TriangleFuzzySet (showerTemp-0.05, showerTemp,
    showerTemp0.05))
  • hotLow.addInput(inputTemp)
  • // FuzzyValueVector fvv hotLow.execute()
  • fvv hotLow.execute(new LarsenProductMaxMinRuleE
    xecutor())
  • FuzzyValue hotValveChangeFval
    fvv.fuzzyValueAt(0)
  • double crispHotValveChange
  • hotValveChangeFval.momentDefuzzify()
Write a Comment
User Comments (0)
About PowerShow.com