reasoner
Class Concept
java.lang.Object
reasoner.Concept
- All Implemented Interfaces:
- FuzzySet
public class Concept
- extends java.lang.Object
- implements FuzzySet
- Author:
- marco
Field Summary |
private java.util.Map<java.lang.String,java.lang.Double> |
r
|
Constructor Summary |
Concept()
construct an empty Concept |
Concept(java.util.TreeMap<java.lang.String,java.lang.Double> r)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
r
private java.util.Map<java.lang.String,java.lang.Double> r
Concept
public Concept(java.util.TreeMap<java.lang.String,java.lang.Double> r)
- Parameters:
r
-
Concept
public Concept()
- construct an empty Concept
add
public Concept add(java.lang.String s,
java.lang.Double d)
- add a point to this Concept
- Parameters:
s
- the keyd
- the value
- Returns:
- this Concept after adding point
card
public java.lang.Integer card(java.lang.Double a)
- the cardinality of this Concept at an alfa level
- Specified by:
card
in interface FuzzySet
- Parameters:
a
- the alfa value
- Returns:
- the integer number cardinality of the alfa-set
getKeys
public java.util.Set<java.lang.String> getKeys()
- Returns:
- the set of keys of this concept as a TreeSet
getLambda
public java.util.TreeSet<java.lang.Double> getLambda()
- Specified by:
getLambda
in interface FuzzySet
sum
public Concept sum(FuzzySet f)
- Parameters:
f
-
- Returns:
- the sum with a FuzzySet
diff
public Concept diff(FuzzySet f)
- Parameters:
f
-
- Returns:
- the difference with a FuzzySet
prod
public Concept prod(FuzzySet f)
- Parameters:
f
-
- Returns:
- the product with a FuzzySet
ratio
public Concept ratio(FuzzySet f)
- Parameters:
f
-
- Returns:
- the ratio with a FuzzySet
intersection
public Concept intersection(FuzzySet f)
- Parameters:
f
-
- Returns:
- the intersection with a FuzzySet
union
public Concept union(FuzzySet f)
- Parameters:
f
-
- Returns:
- the union with a FuzzySets
containsKey
public boolean containsKey(java.lang.Object key)
get
public double get(java.lang.Object key)
print
public void print()